Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Tables.CombiTimeTable.Test4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Tables.CombiTimeTable.Test4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Tables.CombiTimeTable.Test4") translateModel(ModelicaTest.Tables.CombiTimeTable.Test4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Tables.CombiTimeTable.Test4") [: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 3.2.3+maint.om/package.mo): time 0.0009927/0.0009927, allocations: 185.2 kB / 7.803 MB, free: 2.398 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.026/1.026, allocations: 205.2 MB / 213.4 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007497/0.0007497, allocations: 90.77 kB / 261.4 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1494/0.1494, allocations: 43.48 MB / 352.8 MB, free: 1.973 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.743e-06/6.773e-06, allocations: 4 kB / 417.7 MB, free: 40.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1993/0.1993, allocations: 58.83 MB / 476.6 MB, free: 5.312 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09746/0.2968, allocations: 86.89 MB / 0.5502 GB, free: 12.16 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001878/0.2971, allocations: 75.95 kB / 0.5503 GB, free: 12.08 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.0134/0.3105, allocations: 5.095 MB / 0.5553 GB, free: 6.984 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.205e-05/0.3106, allocations: 4 kB / 0.5553 GB, free: 6.98 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003985/0.311, allocations: 406 kB / 0.5557 GB, free: 6.539 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.149e-05/0.311, allocations: 8.031 kB / 0.5557 GB, free: 6.531 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.304e-05/0.3111, allocations: 15.81 kB / 0.5557 GB, free: 6.516 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002719/0.3113, allocations: 210.9 kB / 0.5559 GB, free: 6.27 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.763e-05/0.3114, allocations: 11.91 kB / 0.5559 GB, free: 6.258 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.921e-05/0.3114, allocations: 7.984 kB / 0.5559 GB, free: 6.25 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.931e-05/0.3115, allocations: 23.92 kB / 0.5559 GB, free: 6.227 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.495e-05/0.3115, allocations: 45.69 kB / 0.556 GB, free: 6.176 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.3116, allocations: 0 / 0.556 GB, free: 6.176 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.739e-06/0.3116, allocations: 0 / 0.556 GB, free: 6.176 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.3116, allocations: 4 kB / 0.556 GB, free: 6.172 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003323/0.3119, allocations: 281.4 kB / 0.5563 GB, free: 5.859 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.695e-05/0.312, allocations: 50.62 kB / 0.5563 GB, free: 5.801 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.77e-05/0.3121, allocations: 16.98 kB / 0.5563 GB, free: 5.781 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.193e-05/0.3121, allocations: 3.938 kB / 0.5563 GB, free: 5.777 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.067e-05/0.3122, allocations: 63.41 kB / 0.5564 GB, free: 5.703 MB / 394.7 MB Notification: Performance of pre-optimization done (n=6): time 1.313e-06/0.3122, allocations: 0 / 0.5564 GB, free: 5.703 MB / 394.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003755/0.3126, allocations: 141.1 kB / 0.5565 GB, free: 5.559 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.474e-05/0.3126, allocations: 55.34 kB / 0.5566 GB, free: 5.492 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001687/0.3128, allocations: 185.5 kB / 0.5568 GB, free: 5.301 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.279e-05/0.3128, allocations: 25.7 kB / 0.5568 GB, free: 5.27 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.499e-05/0.3129, allocations: 92.12 kB / 0.5569 GB, free: 5.176 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.764e-05/0.3129, allocations: 27.7 kB / 0.5569 GB, free: 5.148 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.228e-06/0.3129, allocations: 0 / 0.5569 GB, free: 5.148 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.313, allocations: 322.8 kB / 0.5572 GB, free: 4.824 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.257e-05/0.3131, allocations: 16 kB / 0.5572 GB, free: 4.809 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.204e-05/0.3131, allocations: 29.72 kB / 0.5572 GB, free: 4.773 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.412e-05/0.3132, allocations: 23.98 kB / 0.5573 GB, free: 4.75 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.71e-07/0.3132, allocations: 0 / 0.5573 GB, free: 4.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001346/0.3133, allocations: 101.4 kB / 0.5574 GB, free: 4.645 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.3133, allocations: 4 kB / 0.5574 GB, free: 4.641 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.3133, allocations: 0 / 0.5574 GB, free: 4.641 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.378e-06/0.3134, allocations: 4 kB / 0.5574 GB, free: 4.637 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.669e-05/0.3135, allocations: 15.98 kB / 0.5574 GB, free: 4.621 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.3135, allocations: 0 / 0.5574 GB, free: 4.621 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.1e-05/0.3135, allocations: 12.03 kB / 0.5574 GB, free: 4.609 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.606e-06/0.3135, allocations: 4 kB / 0.5574 GB, free: 4.605 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 (10): * Single equations (assignments): 10 * 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 7.361e-05/0.3136, allocations: 116.9 kB / 0.5575 GB, free: 4.484 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.172e-05/0.3137, allocations: 19.81 kB / 0.5575 GB, free: 4.465 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001838/0.3138, allocations: 99.22 kB / 0.5576 GB, free: 4.363 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.3138, allocations: 0 / 0.5576 GB, free: 4.363 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.3139, allocations: 0 / 0.5576 GB, free: 4.363 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.3139, allocations: 3.984 kB / 0.5576 GB, free: 4.359 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000353/0.3142, allocations: 367.8 kB / 0.558 GB, free: 3.953 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.3142, allocations: 4 kB / 0.558 GB, free: 3.949 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.233e-05/0.3143, allocations: 19.95 kB / 0.558 GB, free: 3.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.3143, allocations: 192 / 0.558 GB, free: 3.93 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.3143, allocations: 12 kB / 0.558 GB, free: 3.918 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3143, allocations: 0 / 0.558 GB, free: 3.918 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.3143, allocations: 0 / 0.558 GB, free: 3.918 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001961/0.3145, allocations: 217.7 kB / 0.5582 GB, free: 3.68 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.629e-05/0.3146, allocations: 93 kB / 0.5583 GB, free: 3.57 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.533e-05/0.3146, allocations: 4 kB / 0.5583 GB, free: 3.566 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.659e-05/0.3147, allocations: 0 / 0.5583 GB, free: 3.566 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.809e-05/0.3147, allocations: 15.89 kB / 0.5583 GB, free: 3.551 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-06/0.3148, allocations: 4 kB / 0.5583 GB, free: 3.547 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.000108/0.3149, allocations: 156.2 kB / 0.5585 GB, free: 3.395 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002462/0.3151, allocations: 24 kB / 0.5585 GB, free: 3.371 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (9): * Single equations (assignments): 7 * 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.0006135/0.3157, allocations: 348.2 kB / 0.5588 GB, free: 3.062 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001127/0.3159, allocations: 51.94 kB / 0.5589 GB, free: 3.012 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.3159, allocations: 0 / 0.5589 GB, free: 3.012 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 5.144e-05/0.3159, allocations: 31.94 kB / 0.5589 GB, free: 2.98 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002465/0.3162, allocations: 35.95 kB / 0.559 GB, free: 2.945 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003512/0.3165, allocations: 168.5 kB / 0.5591 GB, free: 2.746 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002789/0.3168, allocations: 0.7348 MB / 0.5598 GB, free: 1.984 MB / 394.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3168, allocations: 0 / 0.5598 GB, free: 1.984 MB / 394.7 MB Notification: Performance of Templates: time 0.003552/0.3204, allocations: 1.677 MB / 0.5615 GB, free: 328 kB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Tables.CombiTimeTable.Test4.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Tables.CombiTimeTable.Test4.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Tables.CombiTimeTable.Test4.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Tables.CombiTimeTable.Test4.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Tables.CombiTimeTable.Test4.sim & ./ModelicaTest_3.2.3_ModelicaTest.Tables.CombiTimeTable.Test4 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Tables.CombiTimeTable.Test4.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Tables.CombiTimeTable.Test4_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Tables/CombiTimeTable/Test4/Test4.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Tables.CombiTimeTable.Test4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches