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.001104/0.001104, allocations: 107.6 kB / 17.21 MB, free: 6.289 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.001093/0.001093, allocations: 194 kB / 18.12 MB, free: 5.383 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.392/1.392, allocations: 222.9 MB / 241.8 MB, free: 13.79 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.2195/0.2195, allocations: 44.18 MB / 336.1 MB, free: 2.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 64.67 kB / 407.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1385, allocations: 60.82 MB / 468.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.00416/0.1427, allocations: 2.748 MB / 471.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001685/0.1444, allocations: 0.9309 MB / 472.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001567/0.1446, allocations: 11.94 kB / 472.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001874/0.1448, allocations: 35.7 kB / 472.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001918/0.145, allocations: 99.22 kB / 472.3 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004051/0.1454, allocations: 119.8 kB / 472.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003533/0.1458, allocations: 358.2 kB / 472.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000183/0.146, allocations: 65.7 kB / 472.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001405/0.1461, allocations: 127.5 kB / 473 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001995/0.1463, allocations: 139.3 kB / 473.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.416e-05/0.1464, allocations: 16 kB / 473.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001235/0.1465, allocations: 31.98 kB / 473.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.14e-05/0.1466, allocations: 59.7 kB / 473.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000153/0.1467, allocations: 151.2 kB / 473.4 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003917/0.1471, allocations: 351 kB / 473.7 MB, free: 9.578 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.1471, allocations: 0 / 473.7 MB, free: 9.578 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1471, allocations: 0 / 473.7 MB, free: 9.578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.704e-06/0.1472, allocations: 0 / 473.7 MB, free: 9.578 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.0009802/0.1481, allocations: 0.5966 MB / 474.3 MB, free: 8.934 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.1482, allocations: 8.031 kB / 474.3 MB, free: 8.926 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000244/0.1484, allocations: 48.55 kB / 474.4 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003044/0.1488, allocations: 264.2 kB / 474.6 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.805e-05/0.1488, allocations: 32.95 kB / 474.7 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.11e-05/0.1489, allocations: 36.28 kB / 474.7 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005063/0.1494, allocations: 310.6 kB / 475 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.22e-05/0.1494, allocations: 3.906 kB / 475 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.956e-05/0.1495, allocations: 12 kB / 475 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.131e-05/0.1495, allocations: 8 kB / 475 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003328/0.1498, allocations: 175.8 kB / 475.2 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001988/0.1518, allocations: 1.344 MB / 476.5 MB, free: 6.547 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004239/0.1522, allocations: 249 kB / 476.8 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001328/0.1524, allocations: 88.25 kB / 476.9 MB, free: 6.156 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.306e-05/0.1524, allocations: 4 kB / 476.9 MB, free: 6.152 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.934e-05/0.1525, allocations: 42.5 kB / 476.9 MB, free: 6.102 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.763e-06/0.1525, allocations: 0 / 476.9 MB, free: 6.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005511/0.153, allocations: 217.3 kB / 477.1 MB, free: 5.883 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.44e-05/0.1531, allocations: 162.3 kB / 477.3 MB, free: 5.688 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002087/0.1533, allocations: 212.2 kB / 477.5 MB, free: 5.469 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.973e-05/0.1534, allocations: 29.7 kB / 477.5 MB, free: 5.434 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.1535, allocations: 187.9 kB / 477.7 MB, free: 5.246 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.065e-05/0.1536, allocations: 94.73 kB / 477.8 MB, free: 5.152 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.763e-05/0.1537, allocations: 69.56 kB / 477.9 MB, free: 5.078 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.1538, allocations: 330.8 kB / 478.2 MB, free: 4.746 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.1539, allocations: 67.91 kB / 478.3 MB, free: 4.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002057/0.1541, allocations: 202 kB / 478.5 MB, free: 4.418 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003779/0.1545, allocations: 305.6 kB / 478.8 MB, free: 4.055 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/0.1545, allocations: 4 kB / 478.8 MB, free: 4.051 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004584/0.155, allocations: 317.3 kB / 479.1 MB, free: 3.734 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.155, allocations: 6.438 kB / 479.1 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.1551, allocations: 11.94 kB / 479.1 MB, free: 3.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.1551, allocations: 4 kB / 479.1 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003041/0.1554, allocations: 91.83 kB / 479.2 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.48e-05/0.1554, allocations: 8 kB / 479.2 MB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001779/0.1556, allocations: 31.69 kB / 479.2 MB, free: 3.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.296e-05/0.1556, allocations: 20.25 kB / 479.2 MB, free: 3.566 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.000165/0.1558, allocations: 157.6 kB / 479.4 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000113/0.1559, allocations: 27.72 kB / 479.4 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001805/0.1561, allocations: 87.02 kB / 479.5 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.1561, allocations: 4 kB / 479.5 MB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.1561, allocations: 4 kB / 479.5 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.1562, allocations: 0 / 479.5 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005906/0.1567, allocations: 317.3 kB / 479.8 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.1568, allocations: 0 / 479.8 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003303/0.1571, allocations: 64.53 kB / 479.9 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.333e-06/0.1571, allocations: 4 kB / 479.9 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.129e-05/0.1571, allocations: 11.94 kB / 479.9 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.1571, allocations: 3.938 kB / 479.9 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.1572, allocations: 4 kB / 479.9 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005811/0.1577, allocations: 0.6372 MB / 480.5 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.19e-05/0.1578, allocations: 100.8 kB / 480.6 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.695e-05/0.1579, allocations: 4 kB / 480.6 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002664/0.1581, allocations: 11.98 kB / 480.7 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.347e-05/0.1582, allocations: 15.92 kB / 480.7 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.273e-05/0.1582, allocations: 8 kB / 480.7 MB, free: 2.016 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001235/0.1583, allocations: 149.6 kB / 480.8 MB, free: 1.871 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1583, allocations: 4 kB / 480.8 MB, free: 1.867 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005394/0.1589, allocations: 87.67 kB / 480.9 MB, free: 1.781 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.0001486/0.159, allocations: 103.2 kB / 481 MB, free: 1.672 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003696/0.1594, allocations: 192.2 kB / 481.2 MB, free: 1.488 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.1594, allocations: 4 kB / 481.2 MB, free: 1.484 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001143/0.1596, allocations: 80.22 kB / 481.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008911/0.1605, allocations: 52.77 kB / 481.3 MB, free: 1.352 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00197/0.1624, allocations: 1.225 MB / 482.6 MB, free: 92 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00051/0.163, allocations: 0.768 MB / 483.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001481/0.1631, allocations: 38.95 kB / 483.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.469e-05/0.1632, allocations: 23.42 kB / 483.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of SimCode: time 8.01e-07/0.1632, allocations: 0 / 483.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of Templates: time 0.006295/0.1695, allocations: 2.366 MB / 485.8 MB, free: 12.89 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