Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test79.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.Test79,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y|t_new_2.y.1.|d_t_new_2.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test79") translateModel(ModelicaTest.Tables.CombiTimeTable.Test79,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y|t_new_2.y.1.|d_t_new_2.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test79") [: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.001622/0.001622, allocations: 170.3 kB / 8.147 MB, free: 2.223 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.631/1.631, 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.001267/0.001267, allocations: 89.61 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.2681/0.2681, allocations: 43.49 MB / 353.2 MB, free: 2.027 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.272e-05/1.281e-05, allocations: 4 kB / 417.7 MB, free: 40.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2607, allocations: 58.84 MB / 476.6 MB, free: 5.094 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1506/0.4113, allocations: 86.99 MB / 0.5503 GB, free: 12.07 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002687/0.4117, allocations: 79.41 kB / 0.5504 GB, free: 12 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03345/0.4451, allocations: 7.245 MB / 0.5575 GB, free: 4.754 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.85e-05/0.4452, allocations: 4 kB / 0.5575 GB, free: 4.75 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007905/0.446, allocations: 477.8 kB / 0.5579 GB, free: 4.238 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.4461, allocations: 15.97 kB / 0.558 GB, free: 4.223 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.733e-05/0.4462, allocations: 31.62 kB / 0.558 GB, free: 4.191 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007208/0.4469, allocations: 291 kB / 0.5583 GB, free: 3.863 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.089e-05/0.4469, allocations: 7.984 kB / 0.5583 GB, free: 3.855 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.429e-05/0.447, allocations: 4 kB / 0.5583 GB, free: 3.852 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001494/0.4471, allocations: 31.98 kB / 0.5583 GB, free: 3.82 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002149/0.4474, allocations: 92.41 kB / 0.5584 GB, free: 3.719 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/0.4474, allocations: 3.906 kB / 0.5584 GB, free: 3.715 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.881e-05/0.4474, allocations: 3.984 kB / 0.5584 GB, free: 3.711 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.4474, allocations: 8 kB / 0.5584 GB, free: 3.703 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007412/0.4482, allocations: 437.5 kB / 0.5588 GB, free: 3.234 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00026/0.4485, allocations: 105.4 kB / 0.5589 GB, free: 3.113 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001/0.4486, allocations: 33.84 kB / 0.559 GB, free: 3.074 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.138e-05/0.4486, allocations: 4 kB / 0.559 GB, free: 3.07 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002119/0.4488, allocations: 105 kB / 0.5591 GB, free: 2.949 MB / 394.7 MB Notification: Performance of pre-optimization done (n=12): time 2.165e-06/0.4489, allocations: 0 / 0.5591 GB, free: 2.949 MB / 394.7 MB Notification: Performance of matching and sorting (n=16): time 0.000978/0.4499, allocations: 291.9 kB / 0.5593 GB, free: 2.656 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.795e-05/0.4499, allocations: 85.11 kB / 0.5594 GB, free: 2.555 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000739/0.4507, allocations: 371.4 kB / 0.5598 GB, free: 2.191 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.375e-05/0.4507, allocations: 25.7 kB / 0.5598 GB, free: 2.16 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.084e-05/0.4508, allocations: 154.8 kB / 0.56 GB, free: 2.004 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.094e-05/0.4509, allocations: 51.28 kB / 0.56 GB, free: 1.953 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.007e-05/0.4509, allocations: 0 / 0.56 GB, free: 1.953 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.4511, allocations: 318.8 kB / 0.5603 GB, free: 1.633 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/0.4512, allocations: 39.98 kB / 0.5603 GB, free: 1.594 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001406/0.4514, allocations: 62.88 kB / 0.5604 GB, free: 1.523 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001415/0.4515, allocations: 43.97 kB / 0.5604 GB, free: 1.48 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.4515, allocations: 0 / 0.5604 GB, free: 1.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003984/0.4519, allocations: 145.5 kB / 0.5606 GB, free: 1.332 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.452, allocations: 7.281 kB / 0.5606 GB, free: 1.328 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.452, allocations: 8.375 kB / 0.5606 GB, free: 1.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.452, allocations: 4 kB / 0.5606 GB, free: 1.316 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002791/0.4523, allocations: 31.92 kB / 0.5606 GB, free: 1.285 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.359e-05/0.4523, allocations: 11.98 kB / 0.5606 GB, free: 1.273 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001125/0.4524, allocations: 4 kB / 0.5607 GB, free: 1.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.017e-05/0.4525, allocations: 4 kB / 0.5607 GB, free: 1.266 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEventScaled,$whenCondition1,$PRE.t_new_2.nextTimeEvent,t_new_2.nextTimeEvent,$PRE.t_new_2.nextTimeEventScaled,t_new_2.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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 9.368e-05/0.4526, allocations: 42.95 kB / 0.5607 GB, free: 1.219 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.916e-05/0.4527, allocations: 31.62 kB / 0.5607 GB, free: 1.188 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005773/0.4533, allocations: 192.4 kB / 0.5609 GB, free: 0.9922 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.4533, allocations: 0 / 0.5609 GB, free: 0.9922 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.4533, allocations: 4 kB / 0.5609 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.4533, allocations: 0 / 0.5609 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001113/0.4545, allocations: 0.617 MB / 0.5615 GB, free: 328 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.656e-06/0.4545, allocations: 0 / 0.5615 GB, free: 328 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001504/0.4546, allocations: 23.92 kB / 0.5615 GB, free: 304 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.737e-06/0.4547, allocations: 7.906 kB / 0.5615 GB, free: 296 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.886e-05/0.4547, allocations: 4 kB / 0.5616 GB, free: 292 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.4547, allocations: 7.922 kB / 0.5616 GB, free: 284 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.4547, allocations: 0 / 0.5616 GB, free: 284 kB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005251/0.4553, allocations: 378.5 kB / 0.5619 GB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001656/0.4555, allocations: 124.7 kB / 0.562 GB, free: 15.73 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.509e-05/0.4555, allocations: 3.984 kB / 0.562 GB, free: 15.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002486/0.4558, allocations: 11.94 kB / 0.5621 GB, free: 15.71 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.606e-05/0.4559, allocations: 15.89 kB / 0.5621 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.937e-05/0.4559, allocations: 15.98 kB / 0.5621 GB, free: 15.68 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0005528/0.4565, allocations: 295.1 kB / 0.5624 GB, free: 15.39 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000489/0.457, allocations: 47.94 kB / 0.5624 GB, free: 15.34 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,t_new_2.nextTimeEvent,t_new_2.nextTimeEventScaled,$whenCondition2,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 4 (t_new.nextTimeEvent,t_new.nextTimeEventScaled,t_new_2.nextTimeEvent,t_new_2.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0009982/0.458, allocations: 368.6 kB / 0.5628 GB, free: 15.02 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003489/0.4583, allocations: 103.9 kB / 0.5629 GB, free: 14.92 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.4584, allocations: 4 kB / 0.5629 GB, free: 14.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001591/0.4585, allocations: 59.92 kB / 0.5629 GB, free: 14.86 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006883/0.4592, allocations: 37.06 kB / 0.563 GB, free: 14.82 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001201/0.4605, allocations: 441.3 kB / 0.5634 GB, free: 14.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005779/0.4611, allocations: 0.8091 MB / 0.5642 GB, free: 13.51 MB / 410.7 MB Notification: Performance of SimCode: time 1.332e-06/0.4611, allocations: 0 / 0.5642 GB, free: 13.51 MB / 410.7 MB Notification: Performance of Templates: time 0.008662/0.4697, allocations: 3.456 MB / 0.5675 GB, free: 10.06 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test79.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test79.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test79.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test79.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test79.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test79 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test79.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test79_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Tables/CombiTimeTable/Test79/Test79.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test79.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,t_new.y[1],d_t_new.y,t_new_2.y[1],d_t_new_2.y Variables in the result:_D_cse1,_D_cse2,_D_whenCondition1,_D_whenCondition2,der(d_t_new.u),d_t_new.u,d_t_new.y,der(d_t_new_2.u),d_t_new_2.u,d_t_new_2.y,t_new.columns[1],der(t_new.timeScaled),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.table[3,1],t_new.table[3,2],t_new.table[4,1],t_new.table[4,2],t_new.table[5,1],t_new.table[5,2],t_new.table[6,1],t_new.table[6,2],t_new.table[7,1],t_new.table[7,2],t_new.table[8,1],t_new.table[8,2],t_new.table[9,1],t_new.table[9,2],t_new.timeEvents,t_new.timeScale,t_new.timeScaled,t_new.verboseExtrapolation,t_new.verboseRead,t_new.y[1],t_new_2.columns[1],der(t_new_2.timeScaled),t_new_2.extrapolation,t_new_2.nextTimeEvent,t_new_2.nextTimeEventScaled,t_new_2.nout,t_new_2.offset[1],t_new_2.p_offset[1],t_new_2.shiftTime,t_new_2.smoothness,t_new_2.startTime,t_new_2.t_max,t_new_2.t_maxScaled,t_new_2.t_min,t_new_2.t_minScaled,t_new_2.tableOnFile,t_new_2.table[1,1],t_new_2.table[1,2],t_new_2.table[2,1],t_new_2.table[2,2],t_new_2.table[3,1],t_new_2.table[3,2],t_new_2.table[4,1],t_new_2.table[4,2],t_new_2.table[5,1],t_new_2.table[5,2],t_new_2.table[6,1],t_new_2.table[6,2],t_new_2.table[7,1],t_new_2.table[7,2],t_new_2.table[8,1],t_new_2.table[8,2],t_new_2.table[9,1],t_new_2.table[9,2],t_new_2.timeEvents,t_new_2.timeScale,t_new_2.timeScaled,t_new_2.verboseExtrapolation,t_new_2.verboseRead,t_new_2.y[1],time