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.0008481/0.0008482, allocations: 93.42 kB / 17.35 MB, free: 6.375 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.0008067/0.0008067, allocations: 179.3 kB / 18.26 MB, free: 5.52 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.415/1.415, allocations: 223.3 MB / 242.3 MB, free: 220 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2317/0.2317, allocations: 44.25 MB / 337.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003702/0.0003702, allocations: 9.031 kB / 410.3 MB, free: 27.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1462/0.1466, allocations: 61.91 MB / 472.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.00291/0.1496, allocations: 2.366 MB / 474.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001594/0.1512, allocations: 0.9387 MB / 475.5 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001365/0.1513, allocations: 4 kB / 475.5 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001647/0.1515, allocations: 43.64 kB / 475.6 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002125/0.1517, allocations: 87.28 kB / 475.7 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004665/0.1522, allocations: 123.8 kB / 475.8 MB, free: 9.777 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004036/0.1526, allocations: 358.2 kB / 476.1 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001943/0.1528, allocations: 65.7 kB / 476.2 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001505/0.153, allocations: 127.4 kB / 476.3 MB, free: 9.234 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002004/0.1532, allocations: 131.3 kB / 476.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.584e-05/0.1532, allocations: 16 kB / 476.5 MB, free: 9.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001158/0.1534, allocations: 31.98 kB / 476.5 MB, free: 9.059 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.937e-05/0.1534, allocations: 47.78 kB / 476.6 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001698/0.1536, allocations: 180.9 kB / 476.7 MB, free: 8.828 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003857/0.154, allocations: 338.9 kB / 477.1 MB, free: 8.496 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.154, allocations: 0 / 477.1 MB, free: 8.496 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.154, allocations: 0 / 477.1 MB, free: 8.496 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.154, allocations: 0 / 477.1 MB, free: 8.496 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.0008341/0.1549, allocations: 0.5498 MB / 477.6 MB, free: 7.898 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.1549, allocations: 12.03 kB / 477.6 MB, free: 7.887 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002098/0.1551, allocations: 48.55 kB / 477.7 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000283/0.1554, allocations: 264.2 kB / 477.9 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/0.1555, allocations: 21.03 kB / 477.9 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.778e-05/0.1555, allocations: 36.28 kB / 478 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004916/0.156, allocations: 302.6 kB / 478.3 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.476e-05/0.1561, allocations: 11.98 kB / 478.3 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.681e-05/0.1561, allocations: 8 kB / 478.3 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.1561, allocations: 8 kB / 478.3 MB, free: 7.145 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003127/0.1564, allocations: 171.8 kB / 478.5 MB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001817/0.1583, allocations: 1.356 MB / 479.8 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004033/0.1587, allocations: 253.1 kB / 480.1 MB, free: 5.223 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.1588, allocations: 76.16 kB / 480.2 MB, free: 5.133 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.1588, allocations: 8 kB / 480.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.637e-05/0.1588, allocations: 38.56 kB / 480.2 MB, free: 5.078 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.633e-06/0.1589, allocations: 0 / 480.2 MB, free: 5.078 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004705/0.1593, allocations: 218 kB / 480.4 MB, free: 4.859 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.667e-05/0.1594, allocations: 162.2 kB / 480.6 MB, free: 4.664 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002151/0.1597, allocations: 208.2 kB / 480.8 MB, free: 4.449 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.152e-05/0.1597, allocations: 25.7 kB / 480.8 MB, free: 4.418 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.1598, allocations: 204.2 kB / 481 MB, free: 4.215 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.111e-05/0.1599, allocations: 86.69 kB / 481.1 MB, free: 4.129 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.456e-05/0.1599, allocations: 37.7 kB / 481.1 MB, free: 4.086 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.1601, allocations: 334.8 kB / 481.4 MB, free: 3.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.1602, allocations: 67.92 kB / 481.5 MB, free: 3.684 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001986/0.1604, allocations: 205.9 kB / 481.7 MB, free: 3.418 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003403/0.1607, allocations: 297.7 kB / 482 MB, free: 3.062 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.1607, allocations: 0 / 482 MB, free: 3.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004613/0.1612, allocations: 317.5 kB / 482.3 MB, free: 2.746 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.1612, allocations: 8.031 kB / 482.3 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.1613, allocations: 8 kB / 482.3 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.165e-05/0.1613, allocations: 12 kB / 482.3 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002842/0.1616, allocations: 83.89 kB / 482.4 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.607e-05/0.1616, allocations: 16 kB / 482.4 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000181/0.1618, allocations: 31.69 kB / 482.5 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.649e-05/0.1618, allocations: 20.03 kB / 482.5 MB, free: 2.57 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.0001635/0.162, allocations: 153.6 kB / 482.6 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.1621, allocations: 27.7 kB / 482.7 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001899/0.1623, allocations: 91.08 kB / 482.8 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.1623, allocations: 4 kB / 482.8 MB, free: 2.285 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.1623, allocations: 0 / 482.8 MB, free: 2.285 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.1623, allocations: 0 / 482.8 MB, free: 2.285 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005837/0.1629, allocations: 321.3 kB / 483.1 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1629, allocations: 0 / 483.1 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003204/0.1633, allocations: 71.91 kB / 483.1 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.1633, allocations: 0 / 483.1 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.171e-05/0.1633, allocations: 11.94 kB / 483.2 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.1633, allocations: 8.094 kB / 483.2 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1633, allocations: 3.938 kB / 483.2 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000547/0.1639, allocations: 0.6371 MB / 483.8 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.816e-05/0.164, allocations: 104.8 kB / 483.9 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.134e-05/0.164, allocations: 15.98 kB / 483.9 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002477/0.1643, allocations: 4 kB / 483.9 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.433e-05/0.1643, allocations: 15.98 kB / 483.9 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/0.1643, allocations: 4 kB / 483.9 MB, free: 1.008 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001246/0.1644, allocations: 153.6 kB / 484.1 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1645, allocations: 0 / 484.1 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005227/0.165, allocations: 83.78 kB / 484.2 MB, free: 0.7773 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.0001105/0.1651, allocations: 107.2 kB / 484.3 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003231/0.1654, allocations: 183.9 kB / 484.5 MB, free: 496 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.1654, allocations: 0 / 484.5 MB, free: 496 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.1656, allocations: 76.91 kB / 484.5 MB, free: 420 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008465/0.1664, allocations: 62.11 kB / 484.6 MB, free: 360 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0018/0.1682, allocations: 1.412 MB / 486 MB, free: 14.9 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003525/0.1686, allocations: 0.7758 MB / 486.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001302/0.1687, allocations: 26.97 kB / 486.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.331e-05/0.1688, allocations: 23.62 kB / 486.8 MB, free: 14.05 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1688, allocations: 0 / 486.8 MB, free: 14.05 MB / 366.1 MB Notification: Performance of Templates: time 0.005742/0.1745, allocations: 2.366 MB / 489.2 MB, free: 11.71 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches