Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009886/0.0009887, allocations: 182.4 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.527/1.527, allocations: 205.2 MB / 219 MB, free: 9.203 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008667/0.000867, allocations: 90.53 kB / 267.1 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08846/0.08846, allocations: 12.58 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.343e-05/3.37e-05, allocations: 4 kB / 386 MB, free: 69.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1058, allocations: 50.37 MB / 436.4 MB, free: 19.23 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4151/0.521, allocations: 78.36 MB / 0.5027 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000248/0.5213, allocations: 77.7 kB / 0.5027 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00402/0.5253, allocations: 1.609 MB / 0.5043 GB, free: 11.56 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.5254, allocations: 0 / 0.5043 GB, free: 11.56 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.5254, allocations: 0 / 0.5043 GB, free: 11.56 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0003382/0.5257, allocations: 385.9 kB / 0.5047 GB, free: 11.2 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.5258, allocations: 7.844 kB / 0.5047 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.264e-05/0.5258, allocations: 19.53 kB / 0.5047 GB, free: 11.19 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001841/0.526, allocations: 199 kB / 0.5049 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.526, allocations: 10.83 kB / 0.5049 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.712e-05/0.5261, allocations: 7.844 kB / 0.5049 GB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003527/0.5264, allocations: 193 kB / 0.5051 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.5264, allocations: 0 / 0.5051 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.5265, allocations: 7.719 kB / 0.5051 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.461e-06/0.5265, allocations: 4 kB / 0.5051 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.694e-05/0.5266, allocations: 46.52 kB / 0.5052 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004292/0.527, allocations: 392.5 kB / 0.5055 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001406/0.5272, allocations: 129.7 kB / 0.5057 GB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.932e-05/0.5272, allocations: 65.97 kB / 0.5057 GB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.606e-05/0.5273, allocations: 7.75 kB / 0.5057 GB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.822e-05/0.5273, allocations: 33.7 kB / 0.5058 GB, free: 10.37 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 1.183e-06/0.5273, allocations: 4 kB / 0.5058 GB, free: 10.37 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002427/0.5276, allocations: 123.7 kB / 0.5059 GB, free: 10.32 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.148e-05/0.5276, allocations: 109.9 kB / 0.506 GB, free: 10.19 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000104/0.5277, allocations: 149.1 kB / 0.5061 GB, free: 10.1 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.22e-05/0.5278, allocations: 29.58 kB / 0.5062 GB, free: 10.07 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.732e-05/0.5278, allocations: 90.27 kB / 0.5062 GB, free: 9.98 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.339e-05/0.5278, allocations: 11.06 kB / 0.5062 GB, free: 9.977 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.01e-06/0.5278, allocations: 7.125 kB / 0.5063 GB, free: 9.973 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.846e-05/0.5279, allocations: 328 kB / 0.5066 GB, free: 9.656 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.388e-05/0.5279, allocations: 11.16 kB / 0.5066 GB, free: 9.656 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.088e-05/0.528, allocations: 82.58 kB / 0.5067 GB, free: 9.566 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.397e-05/0.528, allocations: 29.55 kB / 0.5067 GB, free: 9.562 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.528, allocations: 7.938 kB / 0.5067 GB, free: 9.555 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001682/0.5282, allocations: 111 kB / 0.5068 GB, free: 9.504 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.5282, allocations: 7.531 kB / 0.5068 GB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.5283, allocations: 0 / 0.5068 GB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.5283, allocations: 3.844 kB / 0.5068 GB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.5284, allocations: 29.62 kB / 0.5068 GB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.5284, allocations: 7.812 kB / 0.5068 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.604e-05/0.5285, allocations: 10.64 kB / 0.5069 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.075e-05/0.5285, allocations: 3.781 kB / 0.5069 GB, free: 9.496 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 12 (sample1.u,integerConstant.y,sum2.y,sum2.u[2],sum2.u[1],sum1.y,sum1.u[2],sum1.u[1],sample2.y,hold.u,hold.y,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.756e-05/0.5286, allocations: 127.3 kB / 0.507 GB, free: 9.379 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001411/0.5287, allocations: 102 kB / 0.5071 GB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.711e-05/0.5288, allocations: 18.2 kB / 0.5071 GB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.5288, allocations: 0 / 0.5071 GB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.5288, allocations: 7.781 kB / 0.5071 GB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.5288, allocations: 0 / 0.5071 GB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001958/0.529, allocations: 193.4 kB / 0.5073 GB, free: 9.141 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.529, allocations: 7.781 kB / 0.5073 GB, free: 9.137 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.5291, allocations: 25.53 kB / 0.5073 GB, free: 9.137 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.5291, allocations: 0 / 0.5073 GB, free: 9.137 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.668e-06/0.5291, allocations: 3.625 kB / 0.5073 GB, free: 9.137 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.5292, allocations: 7.891 kB / 0.5073 GB, free: 9.133 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.5292, allocations: 3.938 kB / 0.5073 GB, free: 9.129 MB / 330.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:332:7-332:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Purely discrete algebraic loops cannot be solved by iterative processes. Try to break them open using the delay() operator.) hold.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold.y hold.y = $getPart(hold.u) sample2.y = $getPart(hold.y) sum1.u[2] = sample2.y sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum2.u[2] = sum1.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] hold.u = sum2.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: hold.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold.y equations: hold.y = $getPart(hold.u) sample2.y = $getPart(hold.y) sum1.u[2] = sample2.y sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum2.u[2] = sum1.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] hold.u = sum2.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7819:5-7819:89:writable] Error: Internal error Transformation module sort components failed Warning: The optimization module detectJacobianSparsePattern failed. This module will be skipped and the transformation process continued. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000315/0.5295, allocations: 406.9 kB / 0.5077 GB, free: 8.855 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.592e-05/0.5295, allocations: 99.77 kB / 0.5078 GB, free: 8.754 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.759e-05/0.5296, allocations: 7.781 kB / 0.5078 GB, free: 8.754 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.5297, allocations: 7.016 kB / 0.5078 GB, free: 8.754 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.322e-05/0.5297, allocations: 0 / 0.5078 GB, free: 8.754 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.612e-06/0.5297, allocations: 3.844 kB / 0.5078 GB, free: 8.754 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.018e-05/0.5298, allocations: 116.8 kB / 0.5079 GB, free: 8.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5298, allocations: 0 / 0.5079 GB, free: 8.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002482/0.5301, allocations: 18.92 kB / 0.508 GB, free: 8.676 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (hold.y,sample1.u,sample1.y,hold.u,sample2.y,sum1.u[1],sum1.u[2],sum1.y,sum2.u[1],sum2.u[2],sum2.y,integerConstant.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.952e-05/0.5301, allocations: 106.1 kB / 0.5081 GB, free: 8.578 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000132/0.5303, allocations: 73.52 kB / 0.5081 GB, free: 8.566 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.5303, allocations: 3.812 kB / 0.5081 GB, free: 8.566 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.634e-05/0.5303, allocations: 8.062 kB / 0.5081 GB, free: 8.566 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000301/0.5306, allocations: 62.56 kB / 0.5082 GB, free: 8.555 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002841/0.5309, allocations: 172 kB / 0.5084 GB, free: 8.453 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001586/0.5311, allocations: 0.7173 MB / 0.5091 GB, free: 7.754 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.293e-05/0.5311, allocations: 4.438 kB / 0.5091 GB, free: 7.754 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.835e-05/0.5312, allocations: 15.34 kB / 0.5091 GB, free: 7.742 MB / 330.7 MB Notification: Performance of SimCode: time 3.1e-07/0.5312, allocations: 0 / 0.5091 GB, free: 7.742 MB / 330.7 MB Notification: Performance of Templates: time 0.002834/0.534, allocations: 0.8404 MB / 0.5099 GB, free: 7.535 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches