Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") [: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.001702/0.001702, allocations: 172.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.725/1.725, allocations: 205.2 MB / 213.8 MB, free: 13.87 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.001264/0.001263, allocations: 95 kB / 261.8 MB, free: 13.62 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.09644/0.09644, allocations: 12.59 MB / 322.3 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.567e-06/8.716e-06, allocations: 4 kB / 378.4 MB, free: 76.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08407/0.0841, allocations: 50.36 MB / 428.7 MB, free: 25.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3251/0.4093, allocations: 81.04 MB / 0.4978 GB, free: 11.54 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002903/0.4097, allocations: 85.44 kB / 0.4979 GB, free: 11.53 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.026/0.4357, allocations: 6.053 MB / 0.5038 GB, free: 10.7 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.993e-05/0.4357, allocations: 3.844 kB / 0.5038 GB, free: 10.7 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.4364, allocations: 498.8 kB / 0.5043 GB, free: 10.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.4365, allocations: 11.78 kB / 0.5043 GB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.052e-05/0.4366, allocations: 23.06 kB / 0.5043 GB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005561/0.4371, allocations: 289.4 kB / 0.5046 GB, free: 9.965 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.269e-05/0.4372, allocations: 3.688 kB / 0.5046 GB, free: 9.965 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.911e-05/0.4372, allocations: 3.656 kB / 0.5046 GB, free: 9.965 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001479/0.4374, allocations: 39.14 kB / 0.5047 GB, free: 9.957 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003096/0.4377, allocations: 153.2 kB / 0.5048 GB, free: 9.844 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.4377, allocations: 0 / 0.5048 GB, free: 9.844 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.866e-05/0.4377, allocations: 0 / 0.5048 GB, free: 9.844 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.603e-06/0.4377, allocations: 3.594 kB / 0.5048 GB, free: 9.844 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006102/0.4384, allocations: 372.8 kB / 0.5052 GB, free: 9.543 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001908/0.4386, allocations: 102.4 kB / 0.5053 GB, free: 9.465 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.664e-05/0.4387, allocations: 46.72 kB / 0.5053 GB, free: 9.434 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.531e-05/0.4387, allocations: 11.78 kB / 0.5053 GB, free: 9.426 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001329/0.4389, allocations: 76.11 kB / 0.5054 GB, free: 9.367 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.294e-06/0.4389, allocations: 0 / 0.5054 GB, free: 9.367 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003287/0.4392, allocations: 105.9 kB / 0.5055 GB, free: 9.312 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.143e-05/0.4393, allocations: 161.5 kB / 0.5056 GB, free: 9.125 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004151/0.4397, allocations: 285 kB / 0.5059 GB, free: 8.996 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.125e-05/0.4398, allocations: 25.7 kB / 0.5059 GB, free: 8.965 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.029e-05/0.4398, allocations: 161.2 kB / 0.5061 GB, free: 8.812 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.11e-05/0.4398, allocations: 22.48 kB / 0.5061 GB, free: 8.793 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.386e-06/0.4399, allocations: 0 / 0.5061 GB, free: 8.793 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.578e-05/0.4399, allocations: 314.8 kB / 0.5064 GB, free: 8.48 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.013e-05/0.44, allocations: 20.06 kB / 0.5064 GB, free: 8.48 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000115/0.4401, allocations: 92.31 kB / 0.5065 GB, free: 8.406 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.377e-05/0.4402, allocations: 28.05 kB / 0.5066 GB, free: 8.398 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.4402, allocations: 7.594 kB / 0.5066 GB, free: 8.395 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002297/0.4405, allocations: 97.02 kB / 0.5067 GB, free: 8.348 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.4405, allocations: 6.156 kB / 0.5067 GB, free: 8.348 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.4405, allocations: 3.875 kB / 0.5067 GB, free: 8.348 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.4405, allocations: 0 / 0.5067 GB, free: 8.348 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001912/0.4407, allocations: 23.45 kB / 0.5067 GB, free: 8.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.4408, allocations: 0 / 0.5067 GB, free: 8.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.4409, allocations: 11.56 kB / 0.5067 GB, free: 8.336 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.348e-05/0.4409, allocations: 3.875 kB / 0.5067 GB, free: 8.336 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,subSample.y,subSample.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 7.34e-05/0.441, allocations: 42.75 kB / 0.5067 GB, free: 8.297 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001171/0.4411, allocations: 68.59 kB / 0.5068 GB, free: 8.242 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002966/0.4414, allocations: 111.6 kB / 0.5069 GB, free: 8.184 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.4414, allocations: 0 / 0.5069 GB, free: 8.184 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.4414, allocations: 3.844 kB / 0.5069 GB, free: 8.184 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.4415, allocations: 0 / 0.5069 GB, free: 8.184 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002177/0.4417, allocations: 219.5 kB / 0.5071 GB, free: 7.992 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.4417, allocations: 0 / 0.5071 GB, free: 7.992 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001216/0.4418, allocations: 30.83 kB / 0.5072 GB, free: 7.977 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.4419, allocations: 0 / 0.5072 GB, free: 7.977 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.424e-05/0.4419, allocations: 3.969 kB / 0.5072 GB, free: 7.977 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.4419, allocations: 0 / 0.5072 GB, free: 7.977 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.4419, allocations: 3.906 kB / 0.5072 GB, free: 7.973 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002621/0.4422, allocations: 178 kB / 0.5073 GB, free: 7.832 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001419/0.4423, allocations: 120.4 kB / 0.5074 GB, free: 7.719 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.45e-05/0.4424, allocations: 3.469 kB / 0.5074 GB, free: 7.719 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.4425, allocations: 3.75 kB / 0.5075 GB, free: 7.719 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.977e-05/0.4426, allocations: 10.8 kB / 0.5075 GB, free: 7.715 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.666e-05/0.4426, allocations: 7.828 kB / 0.5075 GB, free: 7.711 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0003369/0.443, allocations: 224.9 kB / 0.5077 GB, free: 7.617 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003837/0.4434, allocations: 53.88 kB / 0.5077 GB, free: 7.602 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,subSample.y,sample.y,subSample.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.0008244/0.4442, allocations: 341.5 kB / 0.5081 GB, free: 7.344 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002802/0.4445, allocations: 80.41 kB / 0.5081 GB, free: 7.332 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4445, allocations: 0 / 0.5081 GB, free: 7.332 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.823e-05/0.4446, allocations: 21.34 kB / 0.5082 GB, free: 7.332 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005221/0.4451, allocations: 55.84 kB / 0.5082 GB, free: 7.316 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007511/0.4459, allocations: 310.8 kB / 0.5085 GB, free: 7.129 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003367/0.4463, allocations: 0.7743 MB / 0.5093 GB, free: 6.391 MB / 330.7 MB Notification: Performance of SimCode: time 1.383e-06/0.4463, allocations: 3.938 kB / 0.5093 GB, free: 6.387 MB / 330.7 MB Notification: Performance of Templates: time 0.007197/0.4535, allocations: 2.924 MB / 0.5121 GB, free: 4.918 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches