Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test85.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/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/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(ModelicaTest.Tables.CombiTimeTable.Test85,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test85") translateModel(ModelicaTest.Tables.CombiTimeTable.Test85,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test85") [: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.002594/0.002593, allocations: 176.4 kB / 8.148 MB, free: 2.207 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.776/1.776, 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.00126/0.001259, allocations: 95.19 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2688/0.2688, allocations: 43.49 MB / 353.2 MB, free: 2.039 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.077e-05/1.095e-05, allocations: 4 kB / 417.7 MB, free: 40.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2871/0.2872, allocations: 58.84 MB / 476.6 MB, free: 5.09 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1579/0.4451, allocations: 86.68 MB / 0.55 GB, free: 12.33 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002857/0.4454, allocations: 75.25 kB / 0.5501 GB, free: 12.26 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.02345/0.4689, allocations: 4.721 MB / 0.5547 GB, free: 7.539 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.754e-05/0.469, allocations: 4 kB / 0.5547 GB, free: 7.535 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005467/0.4695, allocations: 390 kB / 0.5551 GB, free: 7.109 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.4696, allocations: 8.031 kB / 0.5551 GB, free: 7.102 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.296e-05/0.4697, allocations: 7.906 kB / 0.5551 GB, free: 7.094 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004339/0.4701, allocations: 218.6 kB / 0.5553 GB, free: 6.84 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.742e-05/0.4701, allocations: 0 / 0.5553 GB, free: 6.84 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.809e-05/0.4702, allocations: 0 / 0.5553 GB, free: 6.84 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.492e-05/0.4703, allocations: 12 kB / 0.5553 GB, free: 6.828 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001143/0.4704, allocations: 49.67 kB / 0.5554 GB, free: 6.773 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.4704, allocations: 0 / 0.5554 GB, free: 6.773 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.694e-05/0.4704, allocations: 7.984 kB / 0.5554 GB, free: 6.766 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.4705, allocations: 0 / 0.5554 GB, free: 6.766 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002367/0.4707, allocations: 162.2 kB / 0.5555 GB, free: 6.57 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001361/0.4709, allocations: 50.56 kB / 0.5556 GB, free: 6.512 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.605e-05/0.4709, allocations: 16.86 kB / 0.5556 GB, free: 6.492 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.666e-05/0.471, allocations: 4 kB / 0.5556 GB, free: 6.488 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001254/0.4711, allocations: 55.5 kB / 0.5557 GB, free: 6.422 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 2.034e-06/0.4711, allocations: 0 / 0.5557 GB, free: 6.422 MB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002478/0.4714, allocations: 73.58 kB / 0.5557 GB, free: 6.344 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.525e-05/0.4714, allocations: 55.34 kB / 0.5558 GB, free: 6.277 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002214/0.4716, allocations: 153.4 kB / 0.5559 GB, free: 6.121 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.481e-05/0.4717, allocations: 25.7 kB / 0.556 GB, free: 6.09 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.073e-05/0.4718, allocations: 150.6 kB / 0.5561 GB, free: 5.941 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.537e-05/0.4718, allocations: 15.75 kB / 0.5561 GB, free: 5.926 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.42e-06/0.4718, allocations: 0 / 0.5561 GB, free: 5.926 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.472, allocations: 314.8 kB / 0.5564 GB, free: 5.609 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.898e-05/0.472, allocations: 19.98 kB / 0.5564 GB, free: 5.59 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.392e-05/0.4721, allocations: 21.72 kB / 0.5564 GB, free: 5.562 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.777e-05/0.4722, allocations: 15.98 kB / 0.5565 GB, free: 5.547 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.4722, allocations: 0 / 0.5565 GB, free: 5.547 MB / 394.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001793/0.4724, allocations: 77.47 kB / 0.5565 GB, free: 5.465 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.4724, allocations: 11.28 kB / 0.5565 GB, free: 5.457 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.4724, allocations: 0 / 0.5565 GB, free: 5.457 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.4724, allocations: 0 / 0.5565 GB, free: 5.457 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001304/0.4726, allocations: 8 kB / 0.5566 GB, free: 5.449 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.598e-06/0.4726, allocations: 4.031 kB / 0.5566 GB, free: 5.445 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.33e-05/0.4727, allocations: 7.984 kB / 0.5566 GB, free: 5.438 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.223e-05/0.4727, allocations: 4 kB / 0.5566 GB, free: 5.434 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.509e-05/0.4728, allocations: 31.72 kB / 0.5566 GB, free: 5.398 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.96e-05/0.4728, allocations: 7.906 kB / 0.5566 GB, free: 5.391 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002321/0.473, allocations: 81.8 kB / 0.5567 GB, free: 5.305 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.4731, allocations: 0 / 0.5567 GB, free: 5.305 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.4731, allocations: 0 / 0.5567 GB, free: 5.305 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.4731, allocations: 4 kB / 0.5567 GB, free: 5.301 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001962/0.4733, allocations: 178 kB / 0.5569 GB, free: 5.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.4733, allocations: 0 / 0.5569 GB, free: 5.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.083e-05/0.4734, allocations: 4.188 kB / 0.5569 GB, free: 5.086 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.4734, allocations: 0 / 0.5569 GB, free: 5.086 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.71e-05/0.4734, allocations: 8 kB / 0.5569 GB, free: 5.078 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.4734, allocations: 0 / 0.5569 GB, free: 5.078 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.4734, allocations: 0 / 0.5569 GB, free: 5.078 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000205/0.4736, allocations: 104.9 kB / 0.557 GB, free: 4.957 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001366/0.4738, allocations: 92.95 kB / 0.5571 GB, free: 4.848 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.329e-05/0.4738, allocations: 0 / 0.5571 GB, free: 4.848 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.559e-05/0.4739, allocations: 7.984 kB / 0.5571 GB, free: 4.84 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.49e-05/0.474, allocations: 3.906 kB / 0.5571 GB, free: 4.836 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.225e-05/0.474, allocations: 4 kB / 0.5571 GB, free: 4.832 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001601/0.4742, allocations: 128.1 kB / 0.5572 GB, free: 4.707 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002925/0.4745, allocations: 23.94 kB / 0.5572 GB, free: 4.684 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 2 (t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0009413/0.4754, allocations: 319 kB / 0.5575 GB, free: 4.398 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002078/0.4757, allocations: 35.94 kB / 0.5576 GB, free: 4.363 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.4757, allocations: 0 / 0.5576 GB, free: 4.363 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 7.226e-05/0.4758, allocations: 23.98 kB / 0.5576 GB, free: 4.34 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003888/0.4762, allocations: 24.73 kB / 0.5576 GB, free: 4.316 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005033/0.4767, allocations: 153.2 kB / 0.5578 GB, free: 4.133 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003907/0.4771, allocations: 0.7231 MB / 0.5585 GB, free: 3.383 MB / 394.7 MB Notification: Performance of SimCode: time 1.443e-06/0.4771, allocations: 0 / 0.5585 GB, free: 3.383 MB / 394.7 MB Notification: Performance of Templates: time 0.005062/0.4822, allocations: 1.684 MB / 0.5601 GB, free: 1.699 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test85.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test85.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test85.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test85.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test85.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test85 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test85.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test85_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Tables/CombiTimeTable/Test85/Test85.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test85.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,t_new.y[1] Variables in the result:_D_cse1,_D_whenCondition1,t_new.columns[1],t_new.extrapolation,t_new.nextTimeEvent,t_new.nextTimeEventScaled,t_new.nout,t_new.offset[1],t_new.p_offset[1],t_new.shiftTime,t_new.smoothness,t_new.startTime,t_new.t_max,t_new.t_maxScaled,t_new.t_min,t_new.t_minScaled,t_new.tableOnFile,t_new.table[1,1],t_new.table[1,2],t_new.table[2,1],t_new.table[2,2],t_new.timeEvents,t_new.timeScale,t_new.timeScaled,t_new.verboseExtrapolation,t_new.verboseRead,t_new.y[1],time