Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test85.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test85") translateModel(ModelicaTest.Tables.CombiTimeTable.Test85,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.",fileNamePrefix="ModelicaTest_4.0.0_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009706/0.0009709, allocations: 176.1 kB / 8.518 MB, free: 1.855 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.234/1.234, allocations: 221.4 MB / 230.3 MB, free: 7.648 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009148/0.0009148, allocations: 86.53 kB / 281.2 MB, free: 5.453 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1779/0.1779, allocations: 44.14 MB / 376.1 MB, free: 3.219 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.066e-05/1.087e-05, allocations: 4.219 kB / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1254, allocations: 61.91 MB / 0.4941 GB, free: 1.621 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3494/0.4749, allocations: 88.26 MB / 0.5803 GB, free: 8.449 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001938/0.4751, allocations: 73.91 kB / 0.5804 GB, free: 8.414 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01346/0.4886, allocations: 4.917 MB / 0.5852 GB, free: 3.578 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.4886, allocations: 4 kB / 0.5852 GB, free: 3.574 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.0003818/0.489, allocations: 386.1 kB / 0.5855 GB, free: 3.152 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.4891, allocations: 13.22 kB / 0.5855 GB, free: 3.141 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.636e-05/0.4891, allocations: 7.906 kB / 0.5856 GB, free: 3.133 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002617/0.4894, allocations: 211.7 kB / 0.5858 GB, free: 2.887 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.332e-05/0.4894, allocations: 3.906 kB / 0.5858 GB, free: 2.883 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.948e-06/0.4894, allocations: 0 / 0.5858 GB, free: 2.883 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.138e-05/0.4895, allocations: 12 kB / 0.5858 GB, free: 2.871 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.331e-05/0.4896, allocations: 57.61 kB / 0.5858 GB, free: 2.809 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.4896, allocations: 0 / 0.5858 GB, free: 2.809 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.4896, allocations: 4 kB / 0.5858 GB, free: 2.805 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.4896, allocations: 0 / 0.5858 GB, free: 2.805 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001451/0.4897, allocations: 154.2 kB / 0.586 GB, free: 2.617 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.426e-05/0.4898, allocations: 46.53 kB / 0.586 GB, free: 2.562 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.243e-05/0.4899, allocations: 16.86 kB / 0.586 GB, free: 2.543 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.088e-05/0.4899, allocations: 11.94 kB / 0.586 GB, free: 2.531 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.729e-05/0.49, allocations: 59.44 kB / 0.5861 GB, free: 2.461 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 1.162e-06/0.49, allocations: 0 / 0.5861 GB, free: 2.461 MB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001499/0.4902, allocations: 69.58 kB / 0.5862 GB, free: 2.387 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.875e-05/0.4902, allocations: 51.41 kB / 0.5862 GB, free: 2.324 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001364/0.4903, allocations: 155.4 kB / 0.5864 GB, free: 2.168 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.648e-05/0.4904, allocations: 25.7 kB / 0.5864 GB, free: 2.137 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.175e-05/0.4904, allocations: 92.14 kB / 0.5865 GB, free: 2.043 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.864e-05/0.4904, allocations: 15.8 kB / 0.5865 GB, free: 2.027 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.106e-06/0.4904, allocations: 0 / 0.5865 GB, free: 2.027 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.4906, allocations: 323.6 kB / 0.5868 GB, free: 1.703 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.477e-05/0.4906, allocations: 12 kB / 0.5868 GB, free: 1.691 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.123e-05/0.4906, allocations: 21.72 kB / 0.5868 GB, free: 1.66 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.836e-05/0.4907, allocations: 15.98 kB / 0.5869 GB, free: 1.645 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.4907, allocations: 8 kB / 0.5869 GB, free: 1.637 MB / 394.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001103/0.4908, allocations: 81.5 kB / 0.5869 GB, free: 1.551 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.4908, allocations: 8 kB / 0.5869 GB, free: 1.543 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.446e-06/0.4908, allocations: 0 / 0.5869 GB, free: 1.543 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.4908, allocations: 7.922 kB / 0.587 GB, free: 1.535 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.793e-05/0.4909, allocations: 8 kB / 0.587 GB, free: 1.527 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.346e-06/0.4909, allocations: 0 / 0.587 GB, free: 1.527 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.874e-05/0.491, allocations: 11.92 kB / 0.587 GB, free: 1.516 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-06/0.491, allocations: 4 kB / 0.587 GB, free: 1.512 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.43e-05/0.4911, allocations: 112.9 kB / 0.5871 GB, free: 1.395 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.838e-05/0.4911, allocations: 7.906 kB / 0.5871 GB, free: 1.387 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001379/0.4912, allocations: 77.86 kB / 0.5872 GB, free: 1.305 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.4912, allocations: 0 / 0.5872 GB, free: 1.305 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.4913, allocations: 0 / 0.5872 GB, free: 1.305 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.4913, allocations: 0 / 0.5872 GB, free: 1.305 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001158/0.4914, allocations: 170.1 kB / 0.5873 GB, free: 1.102 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.4914, allocations: 0 / 0.5873 GB, free: 1.102 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.738e-05/0.4914, allocations: 4 kB / 0.5873 GB, free: 1.098 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.4914, allocations: 0 / 0.5873 GB, free: 1.098 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.4914, allocations: 8 kB / 0.5873 GB, free: 1.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.4915, allocations: 0 / 0.5873 GB, free: 1.09 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.4915, allocations: 0 / 0.5873 GB, free: 1.09 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001171/0.4916, allocations: 108.8 kB / 0.5874 GB, free: 0.9648 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.525e-05/0.4916, allocations: 89.02 kB / 0.5875 GB, free: 0.8594 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.455e-05/0.4917, allocations: 3.984 kB / 0.5875 GB, free: 0.8555 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.438e-05/0.4917, allocations: 4 kB / 0.5875 GB, free: 0.8516 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.488e-05/0.4917, allocations: 7.906 kB / 0.5875 GB, free: 0.8438 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.274e-06/0.4918, allocations: 4.188 kB / 0.5875 GB, free: 0.8398 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.079e-05/0.4919, allocations: 130.3 kB / 0.5877 GB, free: 0.7148 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0001992/0.4921, allocations: 20 kB / 0.5877 GB, free: 0.6953 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.0005745/0.4926, allocations: 306.2 kB / 0.588 GB, free: 476 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001037/0.4928, allocations: 39.92 kB / 0.588 GB, free: 436 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4928, allocations: 4.062 kB / 0.588 GB, free: 432 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.791e-05/0.4928, allocations: 16 kB / 0.588 GB, free: 416 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002027/0.493, allocations: 23.97 kB / 0.5881 GB, free: 392 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002801/0.4933, allocations: 127.5 kB / 0.5882 GB, free: 236 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002831/0.4936, allocations: 0.7192 MB / 0.5889 GB, free: 15.48 MB / 410.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4936, allocations: 0 / 0.5889 GB, free: 15.48 MB / 410.7 MB Notification: Performance of Templates: time 0.003437/0.4971, allocations: 1.388 MB / 0.5902 GB, free: 14.11 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test85.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test85.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test85.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test85.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test85.sim & ./ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test85 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test85.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test85_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test85/Test85.csv","../files/ModelicaTest_4.0.0_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:t_new.columns[1],t_new.extrapolation,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.verboseExtrapolation,t_new.verboseRead,t_new.y[1],time