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/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 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 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 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",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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001738/0.001738, allocations: 103.4 kB / 15.98 MB, free: 6.359 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.001545/0.001545, allocations: 190.7 kB / 16.91 MB, free: 6.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.673/1.673, allocations: 205.1 MB / 222.8 MB, free: 4.723 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4124/0.4124, allocations: 43.5 MB / 313.6 MB, free: 8.473 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 63.91 kB / 382.2 MB, free: 8.617 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1474/0.1488, allocations: 57.78 MB / 440 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004593/0.1534, allocations: 2.736 MB / 442.7 MB, free: 11.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001915/0.1554, allocations: 0.9785 MB / 443.7 MB, free: 10.99 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001796/0.1556, allocations: 11.94 kB / 443.7 MB, free: 10.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001843/0.1558, allocations: 31.7 kB / 443.8 MB, free: 10.95 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001981/0.156, allocations: 91.3 kB / 443.8 MB, free: 10.86 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004833/0.1565, allocations: 123.7 kB / 444 MB, free: 10.74 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004003/0.1569, allocations: 374.2 kB / 444.3 MB, free: 10.37 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002139/0.1571, allocations: 93.11 kB / 444.4 MB, free: 10.28 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001389/0.1573, allocations: 139.5 kB / 444.6 MB, free: 10.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001938/0.1575, allocations: 143.3 kB / 444.7 MB, free: 10 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.142e-05/0.1575, allocations: 24 kB / 444.7 MB, free: 9.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001069/0.1576, allocations: 43.98 kB / 444.8 MB, free: 9.938 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001251/0.1578, allocations: 59.78 kB / 444.8 MB, free: 9.879 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00016/0.1579, allocations: 167.2 kB / 445 MB, free: 9.715 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004595/0.1584, allocations: 358.9 kB / 445.3 MB, free: 9.363 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.1584, allocations: 0 / 445.3 MB, free: 9.363 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1584, allocations: 0 / 445.3 MB, free: 9.363 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.613e-05/0.1584, allocations: 0 / 445.3 MB, free: 9.363 MB / 382.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.001059/0.1595, allocations: 0.6004 MB / 445.9 MB, free: 8.715 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.642e-05/0.1596, allocations: 12.02 kB / 445.9 MB, free: 8.703 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002751/0.1599, allocations: 52.48 kB / 446 MB, free: 8.652 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000375/0.1603, allocations: 267.6 kB / 446.3 MB, free: 8.352 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.343e-05/0.1603, allocations: 21.03 kB / 446.3 MB, free: 8.332 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.297e-05/0.1604, allocations: 32.38 kB / 446.3 MB, free: 8.301 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006003/0.161, allocations: 306.6 kB / 446.6 MB, free: 7.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.519e-05/0.1611, allocations: 7.906 kB / 446.6 MB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.531e-05/0.1611, allocations: 12 kB / 446.6 MB, free: 7.961 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/0.1611, allocations: 8 kB / 446.6 MB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003504/0.1615, allocations: 175.8 kB / 446.8 MB, free: 7.781 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00225/0.1637, allocations: 1.34 MB / 448.1 MB, free: 6.34 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004407/0.1642, allocations: 249 kB / 448.4 MB, free: 6.051 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001188/0.1643, allocations: 88.19 kB / 448.5 MB, free: 5.949 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.737e-05/0.1644, allocations: 7.984 kB / 448.5 MB, free: 5.941 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.329e-05/0.1644, allocations: 46.5 kB / 448.5 MB, free: 5.887 MB / 382.1 MB Notification: Performance of pre-optimization done (n=22): time 1.923e-06/0.1644, allocations: 0 / 448.5 MB, free: 5.887 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005009/0.1649, allocations: 209.3 kB / 448.7 MB, free: 5.676 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/0.1651, allocations: 166.2 kB / 448.9 MB, free: 5.477 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000201/0.1653, allocations: 216.2 kB / 449.1 MB, free: 5.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.542e-05/0.1653, allocations: 29.7 kB / 449.1 MB, free: 5.215 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001322/0.1655, allocations: 188.1 kB / 449.3 MB, free: 5.027 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.587e-05/0.1656, allocations: 98.78 kB / 449.4 MB, free: 4.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.796e-05/0.1656, allocations: 57.7 kB / 449.5 MB, free: 4.867 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.1658, allocations: 334.8 kB / 449.8 MB, free: 4.531 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/0.1659, allocations: 67.97 kB / 449.9 MB, free: 4.465 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002071/0.1661, allocations: 201.9 kB / 450.1 MB, free: 4.203 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003652/0.1665, allocations: 305.6 kB / 450.4 MB, free: 3.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.1665, allocations: 4 kB / 450.4 MB, free: 3.836 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004551/0.167, allocations: 313.2 kB / 450.7 MB, free: 3.523 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.167, allocations: 4 kB / 450.7 MB, free: 3.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.167, allocations: 8 kB / 450.7 MB, free: 3.512 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.458e-05/0.167, allocations: 4 kB / 450.7 MB, free: 3.508 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002783/0.1673, allocations: 92.02 kB / 450.8 MB, free: 3.418 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.397e-05/0.1673, allocations: 8 kB / 450.8 MB, free: 3.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001915/0.1675, allocations: 39.59 kB / 450.8 MB, free: 3.371 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.037e-05/0.1676, allocations: 16 kB / 450.8 MB, free: 3.355 MB / 382.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.0001413/0.1677, allocations: 169.7 kB / 451 MB, free: 3.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/0.1678, allocations: 19.81 kB / 451 MB, free: 3.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001847/0.168, allocations: 83.17 kB / 451.1 MB, free: 3.066 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.1681, allocations: 7.938 kB / 451.1 MB, free: 3.059 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.1681, allocations: 4 kB / 451.1 MB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.1681, allocations: 0 / 451.1 MB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005592/0.1686, allocations: 317.3 kB / 451.4 MB, free: 2.695 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.1687, allocations: 3.938 kB / 451.4 MB, free: 2.691 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003134/0.169, allocations: 63.97 kB / 451.5 MB, free: 2.629 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.169, allocations: 8 kB / 451.5 MB, free: 2.621 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.947e-05/0.169, allocations: 4 kB / 451.5 MB, free: 2.617 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.169, allocations: 0 / 451.5 MB, free: 2.617 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.169, allocations: 7.938 kB / 451.5 MB, free: 2.609 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005645/0.1696, allocations: 0.6411 MB / 452.2 MB, free: 1.949 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.287e-05/0.1697, allocations: 100.8 kB / 452.3 MB, free: 1.832 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.511e-05/0.1697, allocations: 4 kB / 452.3 MB, free: 1.828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002432/0.17, allocations: 11.98 kB / 452.3 MB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.357e-05/0.17, allocations: 15.92 kB / 452.3 MB, free: 1.801 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.507e-05/0.17, allocations: 12 kB / 452.3 MB, free: 1.789 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001224/0.1702, allocations: 145.9 kB / 452.4 MB, free: 1.648 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1702, allocations: 0 / 452.4 MB, free: 1.648 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000483/0.1706, allocations: 83.78 kB / 452.5 MB, free: 1.566 MB / 382.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.000116/0.1708, allocations: 107.2 kB / 452.6 MB, free: 1.453 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003352/0.1711, allocations: 197.1 kB / 452.8 MB, free: 1.262 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1711, allocations: 0 / 452.8 MB, free: 1.262 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000104/0.1712, allocations: 80.47 kB / 452.9 MB, free: 1.184 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008947/0.1721, allocations: 65.52 kB / 453 MB, free: 1.117 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2438/0.4159, allocations: 1.216 MB / 454.2 MB, free: 48.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003092/0.4163, allocations: 0.7726 MB / 455 MB, free: 47.45 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001921/0.4165, allocations: 30.7 kB / 455 MB, free: 47.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.083e-05/0.4166, allocations: 22.55 kB / 455 MB, free: 47.44 MB / 382.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4166, allocations: 0 / 455 MB, free: 47.44 MB / 382.1 MB Notification: Performance of Templates: time 0.005803/0.4224, allocations: 2.468 MB / 457.5 MB, free: 47.42 MB / 382.1 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