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.001148/0.001148, allocations: 102.3 kB / 16.27 MB, free: 5.961 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.00122/0.00122, allocations: 190.7 kB / 17.2 MB, free: 5.598 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.709/1.709, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2385/0.2385, allocations: 43.52 MB / 313.9 MB, free: 0.5391 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.001414/0.001414, allocations: 69.5 kB / 382.7 MB, free: 56.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1381, allocations: 57.79 MB / 440.5 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003526/0.1416, allocations: 2.688 MB / 443.2 MB, free: 4.215 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001307/0.143, allocations: 0.9901 MB / 444.2 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000146/0.1431, allocations: 7.938 kB / 444.2 MB, free: 3.207 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001626/0.1433, allocations: 51.45 kB / 444.3 MB, free: 3.156 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001486/0.1435, allocations: 103.1 kB / 444.4 MB, free: 3.055 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000406/0.1439, allocations: 139.6 kB / 444.5 MB, free: 2.918 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002779/0.1442, allocations: 374.2 kB / 444.9 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001881/0.1444, allocations: 85.41 kB / 444.9 MB, free: 2.465 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.801e-05/0.1445, allocations: 127.5 kB / 445.1 MB, free: 2.34 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001549/0.1446, allocations: 147.3 kB / 445.2 MB, free: 2.195 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.521e-05/0.1447, allocations: 28 kB / 445.2 MB, free: 2.168 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001092/0.1448, allocations: 43.92 kB / 445.3 MB, free: 2.125 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.101e-05/0.1448, allocations: 67.75 kB / 445.3 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001197/0.145, allocations: 155.2 kB / 445.5 MB, free: 1.906 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002962/0.1453, allocations: 366.7 kB / 445.9 MB, free: 1.547 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1453, allocations: 0 / 445.9 MB, free: 1.547 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1453, allocations: 0 / 445.9 MB, free: 1.547 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.426e-05/0.1453, allocations: 0 / 445.9 MB, free: 1.547 MB / 318.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.000746/0.1461, allocations: 0.5965 MB / 446.4 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.1461, allocations: 8.031 kB / 446.5 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002155/0.1463, allocations: 48.55 kB / 446.5 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002336/0.1466, allocations: 263.7 kB / 446.8 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.973e-05/0.1466, allocations: 29.03 kB / 446.8 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.023e-05/0.1467, allocations: 40.28 kB / 446.8 MB, free: 492 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003675/0.147, allocations: 302.7 kB / 447.1 MB, free: 168 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.194e-05/0.1471, allocations: 7.906 kB / 447.1 MB, free: 160 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.401e-05/0.1471, allocations: 12 kB / 447.1 MB, free: 148 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.1471, allocations: 11.98 kB / 447.2 MB, free: 136 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002896/0.1474, allocations: 171.8 kB / 447.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001987/0.1494, allocations: 1.337 MB / 448.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000418/0.1498, allocations: 257 kB / 448.9 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001141/0.1499, allocations: 76.22 kB / 449 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.15, allocations: 8 kB / 449 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/0.15, allocations: 42.5 kB / 449 MB, free: 14.08 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.724e-06/0.15, allocations: 3.938 kB / 449 MB, free: 14.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004939/0.1505, allocations: 213.4 kB / 449.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001484/0.1507, allocations: 162.3 kB / 449.4 MB, free: 13.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002233/0.1509, allocations: 216.1 kB / 449.6 MB, free: 13.44 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.66e-05/0.1509, allocations: 29.7 kB / 449.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.1511, allocations: 188 kB / 449.8 MB, free: 13.22 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.965e-05/0.1512, allocations: 90.7 kB / 449.9 MB, free: 13.13 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.175e-05/0.1513, allocations: 65.64 kB / 450 MB, free: 13.06 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.1515, allocations: 334.8 kB / 450.3 MB, free: 12.72 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001153/0.1516, allocations: 59.97 kB / 450.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002109/0.1518, allocations: 210 kB / 450.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003693/0.1522, allocations: 301.6 kB / 450.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.1522, allocations: 0 / 450.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004571/0.1527, allocations: 317 kB / 451.2 MB, free: 11.72 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.1527, allocations: 11.98 kB / 451.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.1527, allocations: 4 kB / 451.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.35e-05/0.1527, allocations: 8 kB / 451.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003015/0.153, allocations: 87.84 kB / 451.3 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.468e-05/0.1531, allocations: 11.94 kB / 451.3 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001599/0.1532, allocations: 40.02 kB / 451.3 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.14e-05/0.1533, allocations: 16 kB / 451.4 MB, free: 11.54 MB / 334.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.000147/0.1534, allocations: 157.6 kB / 451.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.1535, allocations: 23.81 kB / 451.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000168/0.1537, allocations: 87.02 kB / 451.6 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.072e-06/0.1537, allocations: 4 kB / 451.6 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.1537, allocations: 0 / 451.6 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.1537, allocations: 7.984 kB / 451.6 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005857/0.1543, allocations: 309.3 kB / 451.9 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.1543, allocations: 8 kB / 451.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003017/0.1547, allocations: 59.97 kB / 452 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.1547, allocations: 0 / 452 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.92e-05/0.1547, allocations: 11.94 kB / 452 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.1547, allocations: 4 kB / 452 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.1547, allocations: 4.547 kB / 452 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005968/0.1553, allocations: 0.6353 MB / 452.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.576e-05/0.1554, allocations: 104.8 kB / 452.8 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.169e-05/0.1554, allocations: 12.19 kB / 452.8 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002523/0.1557, allocations: 15.98 kB / 452.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.08e-05/0.1557, allocations: 11.98 kB / 452.8 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.518e-06/0.1558, allocations: 4 kB / 452.8 MB, free: 10 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001173/0.1559, allocations: 149.8 kB / 452.9 MB, free: 9.855 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1559, allocations: 4 kB / 452.9 MB, free: 9.852 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005278/0.1564, allocations: 83.78 kB / 453 MB, free: 9.77 MB / 334.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.0001311/0.1566, allocations: 104.2 kB / 453.1 MB, free: 9.66 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003558/0.1569, allocations: 192.6 kB / 453.3 MB, free: 9.473 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1569, allocations: 256 / 453.3 MB, free: 9.473 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001041/0.1571, allocations: 83.84 kB / 453.4 MB, free: 9.391 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008672/0.1579, allocations: 61.66 kB / 453.5 MB, free: 9.332 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001705/0.1596, allocations: 1.123 MB / 454.6 MB, free: 8.172 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004451/0.1601, allocations: 0.7677 MB / 455.3 MB, free: 7.379 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001239/0.1602, allocations: 42.95 kB / 455.4 MB, free: 7.34 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.141e-05/0.1603, allocations: 19.44 kB / 455.4 MB, free: 7.32 MB / 334.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1603, allocations: 0 / 455.4 MB, free: 7.32 MB / 334.1 MB Notification: Performance of Templates: time 0.00593/0.1662, allocations: 2.475 MB / 457.9 MB, free: 4.871 MB / 334.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches