Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/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 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|superSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|superSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001675/0.001675, allocations: 171.4 kB / 8.19 MB, free: 2.191 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.73/1.73, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001284/0.001284, allocations: 89.23 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09534/0.09534, allocations: 12.59 MB / 322.3 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.066e-06/8.205e-06, allocations: 0 / 378.4 MB, free: 76.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08088/0.08091, allocations: 50.37 MB / 428.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2873/0.3683, allocations: 81.05 MB / 0.4978 GB, free: 11.6 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000282/0.3686, allocations: 83.28 kB / 0.4979 GB, free: 11.59 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02674/0.3954, allocations: 6.047 MB / 0.5038 GB, free: 10.77 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.992e-05/0.3954, allocations: 3.844 kB / 0.5038 GB, free: 10.77 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006485/0.3961, allocations: 495.9 kB / 0.5043 GB, free: 10.3 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.3962, allocations: 19.14 kB / 0.5043 GB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.821e-05/0.3963, allocations: 22.84 kB / 0.5043 GB, free: 10.28 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005971/0.3969, allocations: 290.4 kB / 0.5046 GB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.878e-05/0.3969, allocations: 3.844 kB / 0.5046 GB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.064e-05/0.3969, allocations: 3.844 kB / 0.5046 GB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001559/0.3971, allocations: 35.77 kB / 0.5047 GB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003133/0.3974, allocations: 151.9 kB / 0.5048 GB, free: 9.914 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.3975, allocations: 0 / 0.5048 GB, free: 9.914 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.965e-05/0.3975, allocations: 0 / 0.5048 GB, free: 9.914 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.3975, allocations: 0 / 0.5048 GB, free: 9.914 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006512/0.3982, allocations: 372.3 kB / 0.5052 GB, free: 9.613 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002016/0.3984, allocations: 104.7 kB / 0.5053 GB, free: 9.535 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.713e-05/0.3985, allocations: 48.62 kB / 0.5053 GB, free: 9.504 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.476e-05/0.3985, allocations: 11.28 kB / 0.5053 GB, free: 9.496 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001316/0.3987, allocations: 76.27 kB / 0.5054 GB, free: 9.438 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.555e-06/0.3987, allocations: 0 / 0.5054 GB, free: 9.438 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003613/0.3991, allocations: 110.2 kB / 0.5055 GB, free: 9.379 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.635e-05/0.3991, allocations: 161.9 kB / 0.5057 GB, free: 9.191 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004605/0.3996, allocations: 290.7 kB / 0.5059 GB, free: 9.062 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.876e-05/0.3997, allocations: 25.7 kB / 0.506 GB, free: 9.031 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.084e-05/0.3997, allocations: 154.6 kB / 0.5061 GB, free: 8.879 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.392e-05/0.3998, allocations: 27.2 kB / 0.5061 GB, free: 8.859 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.496e-06/0.3998, allocations: 0 / 0.5061 GB, free: 8.859 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.578e-05/0.3998, allocations: 310.8 kB / 0.5064 GB, free: 8.547 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.232e-05/0.3999, allocations: 18.75 kB / 0.5064 GB, free: 8.547 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001201/0.4, allocations: 92.56 kB / 0.5065 GB, free: 8.473 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.934e-05/0.4001, allocations: 33.8 kB / 0.5066 GB, free: 8.465 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.4002, allocations: 3.906 kB / 0.5066 GB, free: 8.461 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002382/0.4004, allocations: 97.67 kB / 0.5067 GB, free: 8.414 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.4004, allocations: 3.906 kB / 0.5067 GB, free: 8.414 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.4004, allocations: 0 / 0.5067 GB, free: 8.414 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.4005, allocations: 3.906 kB / 0.5067 GB, free: 8.414 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002008/0.4007, allocations: 26.77 kB / 0.5067 GB, free: 8.406 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.4007, allocations: 0 / 0.5067 GB, free: 8.406 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001374/0.4009, allocations: 7.719 kB / 0.5067 GB, free: 8.402 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.426e-05/0.4009, allocations: 3.891 kB / 0.5067 GB, free: 8.402 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,superSample.y,superSample.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 8.022e-05/0.401, allocations: 37.66 kB / 0.5067 GB, free: 8.363 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001421/0.4011, allocations: 68.16 kB / 0.5068 GB, free: 8.312 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003217/0.4015, allocations: 106.5 kB / 0.5069 GB, free: 8.262 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.4015, allocations: 0 / 0.5069 GB, free: 8.262 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.4015, allocations: 0 / 0.5069 GB, free: 8.262 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.311e-06/0.4015, allocations: 3.906 kB / 0.5069 GB, free: 8.262 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002347/0.4017, allocations: 221.1 kB / 0.5071 GB, free: 8.07 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.4018, allocations: 0 / 0.5071 GB, free: 8.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001368/0.4019, allocations: 31.58 kB / 0.5072 GB, free: 8.051 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.4019, allocations: 0 / 0.5072 GB, free: 8.051 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.402, allocations: 3.812 kB / 0.5072 GB, free: 8.051 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.402, allocations: 0 / 0.5072 GB, free: 8.051 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/0.402, allocations: 3.906 kB / 0.5072 GB, free: 8.047 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002867/0.4023, allocations: 184 kB / 0.5073 GB, free: 7.906 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000149/0.4024, allocations: 118.8 kB / 0.5075 GB, free: 7.789 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.604e-05/0.4025, allocations: 7.812 kB / 0.5075 GB, free: 7.785 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.4027, allocations: 11.23 kB / 0.5075 GB, free: 7.781 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.422e-05/0.4027, allocations: 3.906 kB / 0.5075 GB, free: 7.781 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.754e-05/0.4027, allocations: 3.984 kB / 0.5075 GB, free: 7.777 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0003333/0.4031, allocations: 230.2 kB / 0.5077 GB, free: 7.684 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003964/0.4035, allocations: 48.62 kB / 0.5077 GB, free: 7.668 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: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,superSample.y,sample.y,superSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 0.0008528/0.4044, allocations: 348.8 kB / 0.5081 GB, free: 7.406 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003328/0.4047, allocations: 77.22 kB / 0.5081 GB, free: 7.395 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.4047, allocations: 0 / 0.5081 GB, free: 7.395 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.464e-05/0.4049, allocations: 25.81 kB / 0.5082 GB, free: 7.395 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005713/0.4054, allocations: 49.36 kB / 0.5082 GB, free: 7.383 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008049/0.4063, allocations: 315.6 kB / 0.5085 GB, free: 7.195 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003151/0.4066, allocations: 0.7743 MB / 0.5093 GB, free: 6.453 MB / 330.7 MB Notification: Performance of SimCode: time 1.173e-06/0.4066, allocations: 3.938 kB / 0.5093 GB, free: 6.449 MB / 330.7 MB Notification: Performance of Templates: time 0.007571/0.4142, allocations: 2.919 MB / 0.5121 GB, free: 4.984 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches