Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_4.0.0_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|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001731/0.001731, allocations: 110.5 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002472/0.002472, allocations: 201.9 kB / 18.78 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.974/1.974, allocations: 222.9 MB / 242.5 MB, free: 13.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3344/0.3344, allocations: 44.18 MB / 336.8 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00231/0.00231, allocations: 71.95 kB / 408.3 MB, free: 27.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1477/0.15, allocations: 60.83 MB / 469.2 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.007038/0.1571, allocations: 2.722 MB / 471.9 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002564/0.1597, allocations: 0.9503 MB / 472.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002346/0.16, allocations: 8 kB / 472.9 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002384/0.1602, allocations: 39.64 kB / 472.9 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003242/0.1606, allocations: 87.3 kB / 473 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006597/0.1613, allocations: 127.7 kB / 473.1 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005799/0.1619, allocations: 354.3 kB / 473.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002818/0.1622, allocations: 77.61 kB / 473.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002158/0.1624, allocations: 127.5 kB / 473.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002974/0.1627, allocations: 139.3 kB / 473.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.577e-05/0.1628, allocations: 16 kB / 473.8 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001776/0.163, allocations: 35.98 kB / 473.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.985e-05/0.1631, allocations: 55.77 kB / 473.9 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002451/0.1634, allocations: 151.3 kB / 474 MB, free: 9.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004495/0.1638, allocations: 263.6 kB / 474.3 MB, free: 9.652 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1639, allocations: 0 / 474.3 MB, free: 9.652 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.458e-06/0.1639, allocations: 0 / 474.3 MB, free: 9.652 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.099e-05/0.1639, allocations: 3.938 kB / 474.3 MB, free: 9.648 MB / 350.1 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.001429/0.1654, allocations: 0.6004 MB / 474.9 MB, free: 9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.1654, allocations: 12.03 kB / 474.9 MB, free: 8.988 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003724/0.1658, allocations: 44.55 kB / 475 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000454/0.1663, allocations: 268.2 kB / 475.2 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.43e-05/0.1663, allocations: 25.03 kB / 475.2 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.286e-05/0.1664, allocations: 32.28 kB / 475.3 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008422/0.1673, allocations: 310.6 kB / 475.6 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.52e-05/0.1674, allocations: 7.906 kB / 475.6 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.265e-05/0.1674, allocations: 8 kB / 475.6 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.708e-05/0.1675, allocations: 8 kB / 475.6 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005668/0.168, allocations: 175.5 kB / 475.8 MB, free: 8.074 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003327/0.1714, allocations: 1.344 MB / 477.1 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007403/0.1721, allocations: 241 kB / 477.4 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002091/0.1724, allocations: 92.19 kB / 477.4 MB, free: 6.238 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.179e-05/0.1724, allocations: 4 kB / 477.4 MB, free: 6.234 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.916e-05/0.1725, allocations: 38.56 kB / 477.5 MB, free: 6.188 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 3.256e-06/0.1725, allocations: 0 / 477.5 MB, free: 6.188 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0008909/0.1734, allocations: 221.2 kB / 477.7 MB, free: 5.965 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.1735, allocations: 158.2 kB / 477.9 MB, free: 5.773 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003303/0.1739, allocations: 208.2 kB / 478.1 MB, free: 5.559 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.637e-05/0.1739, allocations: 33.7 kB / 478.1 MB, free: 5.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001831/0.1741, allocations: 192 kB / 478.3 MB, free: 5.328 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001116/0.1743, allocations: 94.88 kB / 478.4 MB, free: 5.234 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000153/0.1744, allocations: 65.56 kB / 478.4 MB, free: 5.164 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002092/0.1747, allocations: 334.8 kB / 478.8 MB, free: 4.828 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002265/0.1749, allocations: 63.97 kB / 478.8 MB, free: 4.766 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003739/0.1753, allocations: 205.9 kB / 479 MB, free: 4.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006738/0.176, allocations: 301.6 kB / 479.3 MB, free: 4.141 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.176, allocations: 4 kB / 479.3 MB, free: 4.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0009284/0.177, allocations: 312.8 kB / 479.6 MB, free: 3.824 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.177, allocations: 8.531 kB / 479.6 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/0.177, allocations: 4 kB / 479.6 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.544e-05/0.1771, allocations: 15.94 kB / 479.7 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005659/0.1777, allocations: 84.08 kB / 479.7 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.093e-05/0.1777, allocations: 15.94 kB / 479.8 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003451/0.178, allocations: 31.69 kB / 479.8 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.917e-05/0.1781, allocations: 20 kB / 479.8 MB, free: 3.648 MB / 350.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002217/0.1783, allocations: 153.6 kB / 480 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002316/0.1786, allocations: 23.72 kB / 480 MB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002739/0.1789, allocations: 95.64 kB / 480.1 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/0.1789, allocations: 4 kB / 480.1 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.1789, allocations: 0 / 480.1 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.1789, allocations: 0 / 480.1 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00108/0.18, allocations: 321.3 kB / 480.4 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.1801, allocations: 0 / 480.4 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000684/0.1808, allocations: 71.89 kB / 480.5 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.1808, allocations: 0 / 480.5 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.176e-05/0.1808, allocations: 8 kB / 480.5 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.107e-06/0.1809, allocations: 4 kB / 480.5 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.1809, allocations: 4 kB / 480.5 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009017/0.1818, allocations: 0.6428 MB / 481.1 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.1819, allocations: 96.86 kB / 481.2 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.693e-05/0.182, allocations: 11.98 kB / 481.2 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005192/0.1825, allocations: 8 kB / 481.2 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.553e-05/0.1826, allocations: 15.98 kB / 481.2 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.225e-05/0.1826, allocations: 4 kB / 481.3 MB, free: 2.098 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002072/0.1829, allocations: 153.6 kB / 481.4 MB, free: 1.949 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.1829, allocations: 96 / 481.4 MB, free: 1.949 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001/0.1839, allocations: 91.62 kB / 481.5 MB, free: 1.859 MB / 350.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001595/0.1841, allocations: 103.2 kB / 481.6 MB, free: 1.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005851/0.1847, allocations: 191.5 kB / 481.8 MB, free: 1.562 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.1847, allocations: 0 / 481.8 MB, free: 1.562 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002164/0.1849, allocations: 76.39 kB / 481.9 MB, free: 1.488 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001605/0.1865, allocations: 57.7 kB / 481.9 MB, free: 1.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003299/0.1899, allocations: 1.261 MB / 483.2 MB, free: 132 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005759/0.1905, allocations: 0.7719 MB / 483.9 MB, free: 15.33 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/0.1906, allocations: 23.44 kB / 484 MB, free: 15.3 MB / 366.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1906, allocations: 0 / 484 MB, free: 15.3 MB / 366.1 MB Notification: Performance of Templates: time 0.009854/0.2005, allocations: 3.363 MB / 487.3 MB, free: 11.94 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches