Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test75.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.Test75,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.Test75") translateModel(ModelicaTest.Tables.CombiTimeTable.Test75,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.Test75") [: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.002696/0.002695, allocations: 172.5 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.733/1.733, 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.001281/0.001281, allocations: 94.19 kB / 261.8 MB, free: 13.63 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.2624/0.2624, allocations: 43.5 MB / 353.2 MB, free: 2.043 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.519e-05/1.535e-05, allocations: 4 kB / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2859/0.2859, allocations: 58.84 MB / 476.6 MB, free: 5.102 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1625/0.4485, allocations: 87 MB / 0.5503 GB, free: 12.07 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00037/0.4489, allocations: 71.97 kB / 0.5504 GB, free: 12 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.04446/0.4934, allocations: 7.241 MB / 0.5575 GB, free: 4.758 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.688e-05/0.4935, allocations: 4 kB / 0.5575 GB, free: 4.754 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.001016/0.4945, allocations: 485.7 kB / 0.5579 GB, free: 4.234 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.4946, allocations: 8.031 kB / 0.558 GB, free: 4.227 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/0.4947, allocations: 31.62 kB / 0.558 GB, free: 4.195 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000919/0.4957, allocations: 291 kB / 0.5583 GB, free: 3.867 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.4957, allocations: 3.984 kB / 0.5583 GB, free: 3.863 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.164e-05/0.4958, allocations: 4 kB / 0.5583 GB, free: 3.859 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000204/0.496, allocations: 35.98 kB / 0.5583 GB, free: 3.824 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000289/0.4963, allocations: 88.41 kB / 0.5584 GB, free: 3.727 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.887e-05/0.4963, allocations: 7.906 kB / 0.5584 GB, free: 3.719 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.13e-05/0.4964, allocations: 3.984 kB / 0.5584 GB, free: 3.715 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.4964, allocations: 7.984 kB / 0.5584 GB, free: 3.707 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008323/0.4972, allocations: 441.5 kB / 0.5588 GB, free: 3.234 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002844/0.4976, allocations: 105.4 kB / 0.5589 GB, free: 3.113 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.4977, allocations: 33.84 kB / 0.559 GB, free: 3.074 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.275e-05/0.4977, allocations: 4 kB / 0.559 GB, free: 3.07 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000226/0.4979, allocations: 108.9 kB / 0.5591 GB, free: 2.945 MB / 394.7 MB Notification: Performance of pre-optimization done (n=12): time 2.665e-06/0.498, allocations: 0 / 0.5591 GB, free: 2.945 MB / 394.7 MB Notification: Performance of matching and sorting (n=16): time 0.001031/0.499, allocations: 296.1 kB / 0.5594 GB, free: 2.648 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.845e-05/0.4991, allocations: 85.11 kB / 0.5594 GB, free: 2.547 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007694/0.4999, allocations: 371.4 kB / 0.5598 GB, free: 2.184 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.273e-05/0.4999, allocations: 25.7 kB / 0.5598 GB, free: 2.152 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.417e-05/0.5, allocations: 154.8 kB / 0.56 GB, free: 1.996 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.507e-05/0.5001, allocations: 51.3 kB / 0.56 GB, free: 1.945 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.023e-05/0.5001, allocations: 0 / 0.56 GB, free: 1.945 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.5003, allocations: 318.8 kB / 0.5603 GB, free: 1.625 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.5005, allocations: 39.98 kB / 0.5604 GB, free: 1.586 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00015/0.5006, allocations: 62.88 kB / 0.5604 GB, free: 1.516 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001464/0.5008, allocations: 43.97 kB / 0.5605 GB, free: 1.473 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.5008, allocations: 0 / 0.5605 GB, free: 1.473 MB / 394.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004277/0.5012, allocations: 145.4 kB / 0.5606 GB, free: 1.324 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.5013, allocations: 11.28 kB / 0.5606 GB, free: 1.316 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.5013, allocations: 4.062 kB / 0.5606 GB, free: 1.312 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.5013, allocations: 4 kB / 0.5606 GB, free: 1.309 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002729/0.5016, allocations: 27.98 kB / 0.5606 GB, free: 1.281 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.5016, allocations: 3.984 kB / 0.5606 GB, free: 1.277 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001095/0.5017, allocations: 8 kB / 0.5606 GB, free: 1.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.915e-05/0.5018, 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 8.892e-05/0.5019, allocations: 42.95 kB / 0.5607 GB, free: 1.219 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/0.502, allocations: 27.62 kB / 0.5607 GB, free: 1.191 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005869/0.5026, allocations: 196.3 kB / 0.5609 GB, free: 0.9922 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.5026, allocations: 0 / 0.5609 GB, free: 0.9922 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.5026, allocations: 0 / 0.5609 GB, free: 0.9922 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.5026, allocations: 4 kB / 0.5609 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001173/0.5038, allocations: 0.6131 MB / 0.5615 GB, free: 332 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.5039, allocations: 4.031 kB / 0.5615 GB, free: 328 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000147/0.504, allocations: 28.05 kB / 0.5615 GB, free: 300 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.188e-05/0.504, allocations: 7.906 kB / 0.5615 GB, free: 292 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.289e-05/0.5041, allocations: 7.922 kB / 0.5616 GB, free: 284 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.5041, allocations: 4 kB / 0.5616 GB, free: 280 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.5041, allocations: 0 / 0.5616 GB, free: 280 kB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005395/0.5047, allocations: 382.4 kB / 0.5619 GB, free: 15.86 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001696/0.5048, allocations: 124.7 kB / 0.562 GB, free: 15.72 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001441/0.505, allocations: 3.984 kB / 0.562 GB, free: 15.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002501/0.5053, allocations: 4 kB / 0.562 GB, free: 15.71 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.227e-05/0.5053, allocations: 19.89 kB / 0.5621 GB, free: 15.69 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.688e-05/0.5054, allocations: 11.98 kB / 0.5621 GB, free: 15.68 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0005167/0.5059, allocations: 299.1 kB / 0.5624 GB, free: 15.39 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000486/0.5064, 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.001047/0.5075, allocations: 362.8 kB / 0.5628 GB, free: 15.02 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003642/0.5078, allocations: 99.92 kB / 0.5629 GB, free: 14.93 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.5079, allocations: 0 / 0.5629 GB, free: 14.93 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001641/0.508, allocations: 63.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.0006865/0.5087, allocations: 40.92 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.001265/0.51, allocations: 453.2 kB / 0.5634 GB, free: 14.33 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005846/0.5106, allocations: 0.8052 MB / 0.5642 GB, free: 13.5 MB / 410.7 MB Notification: Performance of SimCode: time 7.91e-07/0.5106, allocations: 0 / 0.5642 GB, free: 13.5 MB / 410.7 MB Notification: Performance of Templates: time 0.008931/0.5196, allocations: 3.454 MB / 0.5675 GB, free: 10.05 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test75.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test75.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test75.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test75.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test75.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test75 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test75.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test75_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Tables/CombiTimeTable/Test75/Test75.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test75.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