Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.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.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_cpp_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_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001708/0.001708, allocations: 171.3 kB / 8.149 MB, free: 2.223 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.725/1.725, 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.001316/0.001316, allocations: 93.09 kB / 261.8 MB, free: 13.63 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.2633/0.2633, allocations: 43.5 MB / 353.2 MB, free: 2.031 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.234e-06/7.434e-06, allocations: 0 / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3405/0.3405, allocations: 58.84 MB / 476.5 MB, free: 5.086 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1555/0.4961, allocations: 88.79 MB / 0.5521 GB, free: 10.29 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/0.4965, allocations: 67.97 kB / 0.5521 GB, free: 10.23 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.02826/0.5247, allocations: 5.745 MB / 0.5577 GB, free: 4.484 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.76e-05/0.5248, allocations: 4 kB / 0.5578 GB, free: 4.48 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.001176/0.526, allocations: 0.5221 MB / 0.5583 GB, free: 3.914 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.5261, allocations: 8.031 kB / 0.5583 GB, free: 3.906 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003736/0.5265, allocations: 55.59 kB / 0.5583 GB, free: 3.852 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004869/0.527, allocations: 258.4 kB / 0.5586 GB, free: 3.559 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.266e-05/0.527, allocations: 8 kB / 0.5586 GB, free: 3.551 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.847e-05/0.5271, allocations: 23.91 kB / 0.5586 GB, free: 3.527 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005502/0.5277, allocations: 145.3 kB / 0.5587 GB, free: 3.383 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006323/0.5283, allocations: 249.5 kB / 0.559 GB, free: 3.113 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.88e-05/0.5284, allocations: 15.83 kB / 0.559 GB, free: 3.098 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.251e-05/0.5284, allocations: 0 / 0.559 GB, free: 3.098 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.757e-05/0.5284, allocations: 8 kB / 0.559 GB, free: 3.09 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003051/0.5315, allocations: 1.279 MB / 0.5602 GB, free: 1.719 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005762/0.5321, allocations: 208.5 kB / 0.5604 GB, free: 1.473 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001558/0.5323, allocations: 68.3 kB / 0.5605 GB, free: 1.391 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.33e-05/0.5323, allocations: 0 / 0.5605 GB, free: 1.391 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.128e-05/0.5324, allocations: 42.69 kB / 0.5606 GB, free: 1.34 MB / 394.7 MB Notification: Performance of pre-optimization done (n=22): time 2.145e-06/0.5324, allocations: 0 / 0.5606 GB, free: 1.34 MB / 394.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005956/0.533, allocations: 157.6 kB / 0.5607 GB, free: 1.18 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.164e-05/0.5331, allocations: 158.2 kB / 0.5609 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002415/0.5334, allocations: 174 kB / 0.561 GB, free: 0.8125 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.649e-05/0.5334, allocations: 25.7 kB / 0.561 GB, free: 0.7812 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.5336, allocations: 230.2 kB / 0.5613 GB, free: 0.5508 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.676e-05/0.5337, allocations: 94.66 kB / 0.5614 GB, free: 468 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.498e-05/0.5337, allocations: 0 / 0.5614 GB, free: 468 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.5339, allocations: 330.8 kB / 0.5617 GB, free: 128 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001811/0.5341, allocations: 55.95 kB / 0.5617 GB, free: 72 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003064/0.5344, allocations: 190.5 kB / 0.5619 GB, free: 15.82 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002478/0.5346, allocations: 83.91 kB / 0.562 GB, free: 15.74 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.5347, allocations: 7.938 kB / 0.562 GB, free: 15.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0006608/0.5353, allocations: 257.1 kB / 0.5622 GB, free: 15.47 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.5354, allocations: 11.44 kB / 0.5622 GB, free: 15.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.5354, allocations: 7.984 kB / 0.5623 GB, free: 15.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.561e-05/0.5354, allocations: 8 kB / 0.5623 GB, free: 15.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005988/0.536, allocations: 91.83 kB / 0.5624 GB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.421e-05/0.5361, allocations: 4.531 kB / 0.5624 GB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002556/0.5363, allocations: 39.61 kB / 0.5624 GB, free: 15.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.246e-05/0.5364, allocations: 12 kB / 0.5624 GB, free: 15.3 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 9.336e-05/0.5365, allocations: 46.92 kB / 0.5624 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001625/0.5367, allocations: 23.72 kB / 0.5625 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002402/0.5369, allocations: 75.27 kB / 0.5625 GB, free: 15.15 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.5369, allocations: 4 kB / 0.5625 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.5369, allocations: 4.062 kB / 0.5626 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.876e-06/0.537, allocations: 7.906 kB / 0.5626 GB, free: 15.13 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000775/0.5377, allocations: 265.9 kB / 0.5628 GB, free: 14.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-06/0.5378, allocations: 4 kB / 0.5628 GB, free: 14.83 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007337/0.5385, allocations: 63.91 kB / 0.5629 GB, free: 14.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.5385, allocations: 0 / 0.5629 GB, free: 14.77 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.385e-05/0.5386, allocations: 11.98 kB / 0.5629 GB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.314e-06/0.5386, allocations: 4 kB / 0.5629 GB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.5386, allocations: 3.906 kB / 0.5629 GB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000747/0.5394, allocations: 0.6519 MB / 0.5635 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.655e-05/0.5395, allocations: 100.8 kB / 0.5636 GB, free: 13.93 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.257e-05/0.5395, allocations: 4 kB / 0.5636 GB, free: 13.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004153/0.54, allocations: 8 kB / 0.5636 GB, free: 13.92 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.449e-05/0.54, allocations: 11.89 kB / 0.5637 GB, free: 13.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.189e-05/0.54, allocations: 12 kB / 0.5637 GB, free: 13.89 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001481/0.5402, allocations: 129.4 kB / 0.5638 GB, free: 13.77 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006838/0.5409, allocations: 75.78 kB / 0.5639 GB, free: 13.7 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 0.0001603/0.5411, allocations: 98.03 kB / 0.564 GB, free: 13.59 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004626/0.5415, allocations: 163.8 kB / 0.5641 GB, free: 13.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.5416, allocations: 0 / 0.5641 GB, free: 13.43 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001678/0.5417, allocations: 71.86 kB / 0.5642 GB, free: 13.36 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008414/0.5426, allocations: 50.62 kB / 0.5642 GB, free: 13.32 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002662/0.5453, allocations: 1.012 MB / 0.5652 GB, free: 12.26 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006765/0.546, allocations: 0.8101 MB / 0.566 GB, free: 11.42 MB / 410.7 MB Notification: Performance of SimCode: time 1.062e-06/0.546, allocations: 4 kB / 0.566 GB, free: 11.41 MB / 410.7 MB Notification: Performance of Templates: time 0.009269/0.5553, allocations: 3.293 MB / 0.5692 GB, free: 8.125 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches