Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.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.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking") translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking") [: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.0008753/0.0008753, allocations: 187.4 kB / 7.799 MB, free: 2.496 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.003/1.003, allocations: 205.2 MB / 213.4 MB, free: 13.85 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.0008612/0.0008611, allocations: 100.8 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.1554/0.1554, allocations: 43.5 MB / 352.8 MB, free: 1.961 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.64e-06/5.66e-06, allocations: 224 / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.2383, allocations: 58.84 MB / 476.5 MB, free: 5.293 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1061/0.3444, allocations: 88.79 MB / 0.5521 GB, free: 10.23 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001695/0.3447, allocations: 59.98 kB / 0.5521 GB, free: 10.17 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01474/0.3594, allocations: 5.756 MB / 0.5578 GB, free: 4.418 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.523e-05/0.3594, allocations: 4 kB / 0.5578 GB, free: 4.414 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0006095/0.3601, allocations: 0.522 MB / 0.5583 GB, free: 3.848 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.3601, allocations: 8.031 kB / 0.5583 GB, free: 3.84 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002123/0.3603, allocations: 47.61 kB / 0.5583 GB, free: 3.793 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002555/0.3606, allocations: 258.4 kB / 0.5586 GB, free: 3.5 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.568e-05/0.3606, allocations: 12 kB / 0.5586 GB, free: 3.488 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.858e-05/0.3607, allocations: 27.91 kB / 0.5586 GB, free: 3.461 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002912/0.361, allocations: 149.2 kB / 0.5588 GB, free: 3.312 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003412/0.3613, allocations: 241.5 kB / 0.559 GB, free: 3.051 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.311e-05/0.3613, allocations: 7.906 kB / 0.559 GB, free: 3.043 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.828e-05/0.3614, allocations: 7.984 kB / 0.559 GB, free: 3.035 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.807e-06/0.3614, allocations: 8 kB / 0.559 GB, free: 3.027 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00157/0.363, allocations: 1.282 MB / 0.5603 GB, free: 1.652 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002797/0.3633, allocations: 196.4 kB / 0.5604 GB, free: 1.418 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.037e-05/0.3634, allocations: 80.41 kB / 0.5605 GB, free: 1.324 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.3634, allocations: 0 / 0.5605 GB, free: 1.324 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.857e-05/0.3634, allocations: 38.75 kB / 0.5606 GB, free: 1.277 MB / 394.7 MB Notification: Performance of pre-optimization done (n=22): time 1.011e-06/0.3634, allocations: 0 / 0.5606 GB, free: 1.277 MB / 394.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003619/0.3638, allocations: 165.4 kB / 0.5607 GB, free: 1.109 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.453e-05/0.3638, allocations: 158.2 kB / 0.5609 GB, free: 0.918 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001342/0.364, allocations: 170 kB / 0.561 GB, free: 0.7461 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/0.364, allocations: 29.64 kB / 0.5611 GB, free: 0.7109 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.406e-05/0.3641, allocations: 175.8 kB / 0.5612 GB, free: 0.5312 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.159e-05/0.3642, allocations: 94.66 kB / 0.5613 GB, free: 448 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.167e-06/0.3642, allocations: 0 / 0.5613 GB, free: 448 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.079e-05/0.3643, allocations: 330.8 kB / 0.5616 GB, free: 108 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.137e-05/0.3644, allocations: 55.95 kB / 0.5617 GB, free: 52 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001644/0.3645, allocations: 198.5 kB / 0.5619 GB, free: 15.79 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001298/0.3647, allocations: 91.89 kB / 0.562 GB, free: 15.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3647, allocations: 0 / 0.562 GB, free: 15.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003644/0.365, allocations: 269.1 kB / 0.5622 GB, free: 15.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.033e-05/0.3651, allocations: 7.031 kB / 0.5622 GB, free: 15.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.3651, allocations: 4 kB / 0.5622 GB, free: 15.42 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.3651, allocations: 11.94 kB / 0.5622 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002936/0.3654, allocations: 83.84 kB / 0.5623 GB, free: 15.33 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.215e-05/0.3654, allocations: 15.89 kB / 0.5623 GB, free: 15.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00016/0.3656, allocations: 24.09 kB / 0.5624 GB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.414e-05/0.3656, allocations: 24 kB / 0.5624 GB, free: 15.27 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 44 * 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.317e-05/0.3657, allocations: 118.2 kB / 0.5625 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001148/0.3658, allocations: 27.72 kB / 0.5625 GB, free: 15.12 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000137/0.366, allocations: 71.08 kB / 0.5626 GB, free: 15.04 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.366, allocations: 4 kB / 0.5626 GB, free: 15.04 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.366, allocations: 4 kB / 0.5626 GB, free: 15.03 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.366, allocations: 3.984 kB / 0.5626 GB, free: 15.03 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004374/0.3664, allocations: 265.9 kB / 0.5629 GB, free: 14.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3664, allocations: 4 kB / 0.5629 GB, free: 14.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003417/0.3668, allocations: 67.89 kB / 0.5629 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.608e-06/0.3668, allocations: 4 kB / 0.5629 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.704e-05/0.3668, allocations: 4 kB / 0.5629 GB, free: 14.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.3668, allocations: 0 / 0.5629 GB, free: 14.65 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.3668, allocations: 4 kB / 0.5629 GB, free: 14.65 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004276/0.3673, allocations: 0.6598 MB / 0.5636 GB, free: 13.94 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.761e-05/0.3673, allocations: 100.8 kB / 0.5637 GB, free: 13.82 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.795e-05/0.3674, allocations: 12 kB / 0.5637 GB, free: 13.81 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002529/0.3676, allocations: 3.906 kB / 0.5637 GB, free: 13.81 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.733e-05/0.3677, allocations: 19.97 kB / 0.5637 GB, free: 13.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.215e-05/0.3677, allocations: 8 kB / 0.5637 GB, free: 13.78 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.029e-05/0.3678, allocations: 129.4 kB / 0.5638 GB, free: 13.66 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004484/0.3682, allocations: 71.75 kB / 0.5639 GB, free: 13.59 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 11 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 23 * 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 9.736e-05/0.3683, allocations: 106 kB / 0.564 GB, free: 13.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002364/0.3686, allocations: 164.5 kB / 0.5642 GB, free: 13.32 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.3686, allocations: 0 / 0.5642 GB, free: 13.32 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 8.72e-05/0.3687, allocations: 67.88 kB / 0.5642 GB, free: 13.25 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00048/0.3692, allocations: 47.39 kB / 0.5643 GB, free: 13.21 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.3705, allocations: 0.9767 MB / 0.5652 GB, free: 12.19 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003408/0.3708, allocations: 0.8141 MB / 0.566 GB, free: 11.35 MB / 410.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3708, allocations: 0 / 0.566 GB, free: 11.35 MB / 410.7 MB Notification: Performance of Templates: time 0.00502/0.3759, allocations: 2.538 MB / 0.5685 GB, free: 8.824 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestBraking/TestBraking.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches