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.001112/0.001112, allocations: 95.16 kB / 16.98 MB, free: 6.398 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.0009853/0.0009854, allocations: 183.5 kB / 17.87 MB, free: 5.957 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.391/1.391, allocations: 223.2 MB / 241.8 MB, free: 14.65 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.2204/0.2204, allocations: 44.22 MB / 337.1 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003564/0.0003564, allocations: 8 kB / 409.5 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1368, allocations: 61.92 MB / 471.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003169/0.14, allocations: 2.135 MB / 473.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002268/0.1423, allocations: 0.8966 MB / 474.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002423/0.1426, allocations: 19.88 kB / 474.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.262e-05/0.1427, allocations: 31.77 kB / 474.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003338/0.143, allocations: 123.6 kB / 474.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004679/0.1435, allocations: 111.7 kB / 474.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003737/0.1439, allocations: 267.4 kB / 475 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001967/0.1441, allocations: 73.55 kB / 475.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001427/0.1442, allocations: 115.6 kB / 475.2 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002179/0.1445, allocations: 131.4 kB / 475.3 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.354e-05/0.1445, allocations: 12 kB / 475.3 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001336/0.1446, allocations: 35.98 kB / 475.4 MB, free: 9.805 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.547e-05/0.1447, allocations: 43.78 kB / 475.4 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.593e-05/0.1448, allocations: 85.52 kB / 475.5 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003388/0.1451, allocations: 263.5 kB / 475.8 MB, free: 9.414 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1452, allocations: 0 / 475.8 MB, free: 9.414 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.566e-06/0.1452, allocations: 0 / 475.8 MB, free: 9.414 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.1452, allocations: 0 / 475.8 MB, free: 9.414 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.001088/0.1463, allocations: 0.5496 MB / 476.3 MB, free: 8.816 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.336e-05/0.1464, allocations: 8.031 kB / 476.3 MB, free: 8.809 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003095/0.1467, allocations: 51.61 kB / 476.4 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004828/0.1472, allocations: 255 kB / 476.6 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.728e-05/0.1472, allocations: 28.64 kB / 476.6 MB, free: 8.441 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.627e-05/0.1473, allocations: 35.95 kB / 476.7 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006971/0.148, allocations: 286.7 kB / 477 MB, free: 8.105 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.411e-05/0.1481, allocations: 15.89 kB / 477 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.633e-05/0.1481, allocations: 12 kB / 477 MB, free: 8.078 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.009e-05/0.1482, allocations: 8 kB / 477 MB, free: 8.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003791/0.1485, allocations: 172.3 kB / 477.2 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00222/0.1508, allocations: 1.345 MB / 478.5 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004074/0.1512, allocations: 253.3 kB / 478.8 MB, free: 6.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.482e-05/0.1512, allocations: 4 kB / 478.8 MB, free: 6.156 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.716e-05/0.1513, allocations: 38.5 kB / 478.8 MB, free: 6.109 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 2.415e-06/0.1513, allocations: 0 / 478.8 MB, free: 6.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005087/0.1518, allocations: 213.4 kB / 479 MB, free: 5.895 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.13e-05/0.1519, allocations: 162.2 kB / 479.2 MB, free: 5.699 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002103/0.1521, allocations: 208.1 kB / 479.4 MB, free: 5.484 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.227e-05/0.1521, allocations: 29.7 kB / 479.4 MB, free: 5.449 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.1523, allocations: 188 kB / 479.6 MB, free: 5.262 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.049e-05/0.1523, allocations: 94.78 kB / 479.7 MB, free: 5.168 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.361e-05/0.1524, allocations: 15.94 kB / 479.7 MB, free: 5.152 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.1525, allocations: 334.8 kB / 480 MB, free: 4.816 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001153/0.1526, allocations: 71.97 kB / 480.1 MB, free: 4.746 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002085/0.1528, allocations: 206.4 kB / 480.3 MB, free: 4.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001525/0.153, allocations: 99.94 kB / 480.4 MB, free: 4.383 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.153, allocations: 0 / 480.4 MB, free: 4.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004538/0.1535, allocations: 320.8 kB / 480.7 MB, free: 4.062 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.1535, allocations: 11.98 kB / 480.7 MB, free: 4.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.1535, allocations: 4 kB / 480.7 MB, free: 4.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.1535, allocations: 8 kB / 480.7 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002779/0.1538, allocations: 79.91 kB / 480.8 MB, free: 3.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.362e-05/0.1538, allocations: 12.47 kB / 480.8 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001797/0.154, allocations: 39.67 kB / 480.8 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.315e-05/0.1541, allocations: 16 kB / 480.9 MB, free: 3.895 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001508/0.1542, allocations: 153.6 kB / 481 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.1543, allocations: 23.72 kB / 481 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001752/0.1545, allocations: 87.08 kB / 481.1 MB, free: 3.621 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.1545, allocations: 4 kB / 481.1 MB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.1545, allocations: 0 / 481.1 MB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.1545, allocations: 3.984 kB / 481.1 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000574/0.1551, allocations: 317.3 kB / 481.4 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1551, allocations: 0 / 481.4 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003153/0.1554, allocations: 72.16 kB / 481.5 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.087e-06/0.1555, allocations: 0 / 481.5 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.376e-05/0.1555, allocations: 12 kB / 481.5 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.91e-06/0.1555, allocations: 7.984 kB / 481.5 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1555, allocations: 0 / 481.5 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000578/0.1561, allocations: 0.6713 MB / 482.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.343e-05/0.1562, allocations: 100.8 kB / 482.3 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.9e-05/0.1562, allocations: 8 kB / 482.3 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000252/0.1565, allocations: 11.95 kB / 482.3 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.865e-05/0.1565, allocations: 19.97 kB / 482.3 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.1565, allocations: 11.98 kB / 482.4 MB, free: 2.277 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001288/0.1567, allocations: 146.1 kB / 482.5 MB, free: 2.137 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1567, allocations: 7.875 kB / 482.5 MB, free: 2.129 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000524/0.1572, allocations: 79.75 kB / 482.6 MB, free: 2.051 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001308/0.1573, allocations: 104.2 kB / 482.7 MB, free: 1.941 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003092/0.1577, allocations: 188.1 kB / 482.9 MB, free: 1.758 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1577, allocations: 0 / 482.9 MB, free: 1.758 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.742e-05/0.1578, allocations: 75.84 kB / 482.9 MB, free: 1.684 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005836/0.1584, allocations: 57.92 kB / 483 MB, free: 1.625 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001819/0.1602, allocations: 1.369 MB / 484.4 MB, free: 220 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003995/0.1606, allocations: 0.7797 MB / 485.1 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001179/0.1607, allocations: 26.97 kB / 485.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.328e-05/0.1608, allocations: 23.44 kB / 485.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1608, allocations: 0 / 485.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of Templates: time 0.005453/0.1663, allocations: 2.274 MB / 487.5 MB, free: 13.11 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","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches