Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.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.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed") translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed") [: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.0008612/0.0008612, allocations: 191.1 kB / 7.804 MB, free: 2.492 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.074/1.074, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.0008153/0.0008153, allocations: 94.36 kB / 261.4 MB, free: 13.54 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.1564/0.1564, allocations: 43.49 MB / 352.8 MB, free: 1.957 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.08e-06/5.09e-06, allocations: 224 / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.2377, allocations: 58.84 MB / 476.5 MB, free: 5.207 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1071/0.3449, allocations: 86.68 MB / 0.55 GB, free: 12.3 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001987/0.3451, allocations: 63.97 kB / 0.5501 GB, free: 12.23 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01306/0.3582, allocations: 4.459 MB / 0.5544 GB, free: 7.758 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.668e-05/0.3582, allocations: 8 kB / 0.5545 GB, free: 7.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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006953/0.3589, allocations: 0.5176 MB / 0.555 GB, free: 7.184 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.359, allocations: 10.98 kB / 0.555 GB, free: 7.176 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.017e-05/0.359, allocations: 35.62 kB / 0.555 GB, free: 7.141 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002917/0.3593, allocations: 262 kB / 0.5553 GB, free: 6.844 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.287e-05/0.3594, allocations: 8 kB / 0.5553 GB, free: 6.836 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.006e-05/0.3594, allocations: 19.91 kB / 0.5553 GB, free: 6.816 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002487/0.3597, allocations: 129 kB / 0.5554 GB, free: 6.691 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003118/0.36, allocations: 220.2 kB / 0.5556 GB, free: 6.449 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.36, allocations: 7.984 kB / 0.5556 GB, free: 6.441 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.052e-05/0.36, allocations: 3.906 kB / 0.5556 GB, free: 6.438 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.3601, allocations: 8 kB / 0.5556 GB, free: 6.43 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001423/0.3615, allocations: 1.244 MB / 0.5568 GB, free: 5.09 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002216/0.3617, allocations: 174.9 kB / 0.557 GB, free: 4.895 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/0.3618, allocations: 79.55 kB / 0.5571 GB, free: 4.805 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.24e-05/0.3619, allocations: 4 kB / 0.5571 GB, free: 4.801 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.3619, allocations: 42.56 kB / 0.5571 GB, free: 4.75 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 1.453e-06/0.3619, allocations: 0 / 0.5571 GB, free: 4.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=32): time 0.001751/0.3637, allocations: 1.339 MB / 0.5584 GB, free: 3.203 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.328e-05/0.3637, allocations: 136.5 kB / 0.5586 GB, free: 3.039 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001563/0.3639, allocations: 188.3 kB / 0.5588 GB, free: 2.848 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.923e-05/0.3639, allocations: 25.7 kB / 0.5588 GB, free: 2.816 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.176e-05/0.364, allocations: 156.2 kB / 0.5589 GB, free: 2.66 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.93e-05/0.3641, allocations: 110.3 kB / 0.559 GB, free: 2.551 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.225e-05/0.3641, allocations: 0 / 0.559 GB, free: 2.551 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.3642, allocations: 340.2 kB / 0.5594 GB, free: 2.211 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.3643, allocations: 60.88 kB / 0.5594 GB, free: 2.148 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001864/0.3645, allocations: 200.7 kB / 0.5596 GB, free: 1.895 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000171/0.3647, allocations: 95.95 kB / 0.5597 GB, free: 1.801 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3647, allocations: 7.938 kB / 0.5597 GB, free: 1.793 MB / 394.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000422/0.3651, allocations: 289 kB / 0.56 GB, free: 1.504 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.3652, allocations: 4.75 kB / 0.56 GB, free: 1.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.3652, allocations: 4 kB / 0.56 GB, free: 1.496 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.3652, allocations: 8.406 kB / 0.56 GB, free: 1.488 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004058/0.3656, allocations: 115.8 kB / 0.5601 GB, free: 1.375 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.3656, allocations: 4 kB / 0.5601 GB, free: 1.371 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002075/0.3658, allocations: 27.98 kB / 0.5601 GB, free: 1.344 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.699e-05/0.3659, allocations: 20 kB / 0.5602 GB, free: 1.324 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * 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.613e-05/0.366, allocations: 122.1 kB / 0.5603 GB, free: 1.199 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.3661, allocations: 35.66 kB / 0.5603 GB, free: 1.164 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.021e-05/0.3662, allocations: 21.72 kB / 0.5603 GB, free: 1.145 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.3662, allocations: 8 kB / 0.5603 GB, free: 1.137 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.3662, allocations: 11.89 kB / 0.5603 GB, free: 1.125 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.3662, allocations: 0 / 0.5603 GB, free: 1.125 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001014/0.3672, allocations: 0.8575 MB / 0.5612 GB, free: 220 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3672, allocations: 4 kB / 0.5612 GB, free: 216 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003858/0.3676, allocations: 91.94 kB / 0.5613 GB, free: 124 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.691e-06/0.3676, allocations: 4 kB / 0.5613 GB, free: 120 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.99e-05/0.3677, allocations: 4 kB / 0.5613 GB, free: 116 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.072e-06/0.3677, allocations: 4 kB / 0.5613 GB, free: 112 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3677, allocations: 7.875 kB / 0.5613 GB, free: 104 kB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000599/0.3683, allocations: 0.6828 MB / 0.562 GB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.696e-05/0.3684, allocations: 104.7 kB / 0.5621 GB, free: 15.24 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.259e-05/0.3684, allocations: 7.984 kB / 0.5621 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003018/0.3687, allocations: 19.98 kB / 0.5621 GB, free: 15.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.239e-05/0.3688, allocations: 27.91 kB / 0.5621 GB, free: 15.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.641e-05/0.3688, allocations: 8 kB / 0.5621 GB, free: 15.18 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001092/0.3689, allocations: 144.5 kB / 0.5623 GB, free: 15.04 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004167/0.3693, allocations: 56 kB / 0.5623 GB, free: 14.98 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * 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 Backend phase and start with SimCode phase: time 0.0001106/0.3695, allocations: 103.2 kB / 0.5624 GB, free: 14.88 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003157/0.3698, allocations: 196.4 kB / 0.5626 GB, free: 14.68 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3698, allocations: 3.938 kB / 0.5626 GB, free: 14.68 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001462/0.3699, allocations: 96.23 kB / 0.5627 GB, free: 14.59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003936/0.3703, allocations: 32.64 kB / 0.5627 GB, free: 14.55 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.3714, allocations: 0.6875 MB / 0.5634 GB, free: 13.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003662/0.3718, allocations: 0.8026 MB / 0.5642 GB, free: 12.98 MB / 410.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3718, allocations: 0 / 0.5642 GB, free: 12.98 MB / 410.7 MB Notification: Performance of Templates: time 0.004861/0.3766, allocations: 2.41 MB / 0.5665 GB, free: 10.59 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches