Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test73.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.Test73,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.Test73") translateModel(ModelicaTest.Tables.CombiTimeTable.Test73,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.Test73") [: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.001604/0.001604, allocations: 176 kB / 8.15 MB, free: 2.184 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.639/1.639, 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.001787/0.001786, allocations: 92.55 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.2876/0.2876, allocations: 43.49 MB / 353.2 MB, free: 2.043 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.15e-05/1.168e-05, allocations: 4 kB / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2954/0.2955, allocations: 58.84 MB / 476.5 MB, free: 5.09 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1825/0.478, allocations: 87 MB / 0.5503 GB, free: 12.08 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/0.4783, allocations: 79.89 kB / 0.5504 GB, free: 12 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03409/0.5125, allocations: 7.074 MB / 0.5573 GB, free: 4.926 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.592e-05/0.5125, allocations: 4 kB / 0.5573 GB, free: 4.922 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.0008251/0.5134, allocations: 473.7 kB / 0.5578 GB, free: 4.414 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.5134, allocations: 12.03 kB / 0.5578 GB, free: 4.402 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.338e-05/0.5135, allocations: 19.72 kB / 0.5578 GB, free: 4.383 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00068/0.5142, allocations: 278 kB / 0.5581 GB, free: 4.066 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.219e-05/0.5142, allocations: 7.875 kB / 0.5581 GB, free: 4.059 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.711e-05/0.5143, allocations: 11.91 kB / 0.5581 GB, free: 4.047 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001555/0.5145, allocations: 35.98 kB / 0.5581 GB, free: 4.012 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002149/0.5147, allocations: 92.45 kB / 0.5582 GB, free: 3.91 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.5147, allocations: 0 / 0.5582 GB, free: 3.91 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.731e-05/0.5147, allocations: 0 / 0.5582 GB, free: 3.91 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.786e-06/0.5148, allocations: 4 kB / 0.5582 GB, free: 3.906 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007588/0.5155, allocations: 429.5 kB / 0.5586 GB, free: 3.445 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002935/0.5158, allocations: 101.5 kB / 0.5587 GB, free: 3.328 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/0.516, allocations: 41.77 kB / 0.5588 GB, free: 3.281 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/0.516, allocations: 4 kB / 0.5588 GB, free: 3.277 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002274/0.5162, allocations: 108.9 kB / 0.5589 GB, free: 3.152 MB / 394.7 MB Notification: Performance of pre-optimization done (n=12): time 2.605e-06/0.5163, allocations: 0 / 0.5589 GB, free: 3.152 MB / 394.7 MB Notification: Performance of matching and sorting (n=16): time 0.0009678/0.5172, allocations: 268.5 kB / 0.5591 GB, free: 2.883 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.959e-05/0.5173, allocations: 81.11 kB / 0.5592 GB, free: 2.785 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005992/0.5179, allocations: 311.3 kB / 0.5595 GB, free: 2.469 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.985e-05/0.518, allocations: 25.7 kB / 0.5595 GB, free: 2.438 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.147e-05/0.5181, allocations: 158.8 kB / 0.5597 GB, free: 2.277 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.636e-05/0.5181, allocations: 55.28 kB / 0.5597 GB, free: 2.223 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.909e-06/0.5182, allocations: 0 / 0.5597 GB, free: 2.223 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.5183, allocations: 314.8 kB / 0.56 GB, free: 1.906 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/0.5184, allocations: 32 kB / 0.5601 GB, free: 1.875 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001426/0.5186, allocations: 70.8 kB / 0.5601 GB, free: 1.797 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001508/0.5188, allocations: 48.12 kB / 0.5602 GB, free: 1.75 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.5188, allocations: 4 kB / 0.5602 GB, free: 1.746 MB / 394.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003942/0.5192, allocations: 141.5 kB / 0.5603 GB, free: 1.602 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.5192, allocations: 4 kB / 0.5603 GB, free: 1.598 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.5192, allocations: 4 kB / 0.5603 GB, free: 1.594 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.5193, allocations: 0 / 0.5603 GB, free: 1.594 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002834/0.5195, allocations: 43.98 kB / 0.5604 GB, free: 1.551 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.5196, allocations: 0 / 0.5604 GB, free: 1.551 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001261/0.5197, allocations: 12.05 kB / 0.5604 GB, free: 1.539 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.015e-05/0.5197, allocations: 4 kB / 0.5604 GB, free: 1.535 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.446e-05/0.5198, allocations: 35.02 kB / 0.5604 GB, free: 1.496 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.036e-05/0.5199, allocations: 23.72 kB / 0.5604 GB, free: 1.473 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007512/0.5207, allocations: 187.3 kB / 0.5606 GB, free: 1.285 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/0.5207, allocations: 7.984 kB / 0.5606 GB, free: 1.277 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.5207, allocations: 0 / 0.5606 GB, free: 1.277 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.5208, allocations: 3.906 kB / 0.5606 GB, free: 1.273 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001431/0.5222, allocations: 0.6013 MB / 0.5612 GB, free: 0.6172 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.5222, allocations: 0 / 0.5612 GB, free: 0.6172 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001915/0.5224, allocations: 16 kB / 0.5612 GB, free: 0.6016 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.169e-05/0.5225, allocations: 7.938 kB / 0.5612 GB, free: 0.5938 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.948e-05/0.5225, allocations: 7.984 kB / 0.5612 GB, free: 0.5859 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.5225, allocations: 0 / 0.5612 GB, free: 0.5859 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.5225, allocations: 64 / 0.5612 GB, free: 0.5859 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006823/0.5232, allocations: 378.4 kB / 0.5616 GB, free: 180 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001951/0.5234, allocations: 120.7 kB / 0.5617 GB, free: 40 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.428e-05/0.5236, allocations: 11.98 kB / 0.5617 GB, free: 28 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000401/0.524, allocations: 4 kB / 0.5617 GB, free: 24 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.328e-05/0.5241, allocations: 7.984 kB / 0.5617 GB, free: 16 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.656e-05/0.5241, allocations: 15.98 kB / 0.5618 GB, free: 0 / 394.7 MB Notification: Performance of sort global known variables: time 0.0005804/0.5247, allocations: 247.2 kB / 0.562 GB, free: 15.76 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000771/0.5255, allocations: 51.92 kB / 0.562 GB, free: 15.71 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.001368/0.5269, allocations: 360.3 kB / 0.5624 GB, free: 15.39 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004637/0.5274, allocations: 107.8 kB / 0.5625 GB, free: 15.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.5274, allocations: 0 / 0.5625 GB, free: 15.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002166/0.5276, allocations: 60.17 kB / 0.5625 GB, free: 15.23 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009442/0.5286, allocations: 56.73 kB / 0.5626 GB, free: 15.16 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00144/0.5301, allocations: 368.4 kB / 0.5629 GB, free: 14.76 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008006/0.5309, allocations: 0.7897 MB / 0.5637 GB, free: 13.95 MB / 410.7 MB Notification: Performance of SimCode: time 1.302e-06/0.5309, allocations: 0 / 0.5637 GB, free: 13.95 MB / 410.7 MB Notification: Performance of Templates: time 0.03128/0.5622, allocations: 3.232 MB / 0.5669 GB, free: 10.73 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test73.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test73.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test73.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test73.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test73.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test73 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test73.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test73_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Tables/CombiTimeTable/Test73/Test73.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test73.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches