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.00108/0.00108, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.001503/0.001503, allocations: 192 kB / 18.56 MB, free: 4.434 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.32/1.32, allocations: 222.9 MB / 242.2 MB, free: 15.15 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.2143/0.2143, allocations: 44.19 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 58.25 kB / 408.4 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1329, allocations: 60.83 MB / 469.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004606/0.1375, allocations: 2.691 MB / 471.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001824/0.1394, allocations: 0.9542 MB / 472.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001757/0.1396, allocations: 11.94 kB / 472.9 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001957/0.1398, allocations: 51.5 kB / 473 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001996/0.14, allocations: 91.12 kB / 473 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004827/0.1405, allocations: 151.5 kB / 473.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003668/0.1409, allocations: 366.3 kB / 473.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001963/0.1411, allocations: 85.14 kB / 473.6 MB, free: 9.969 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.1413, allocations: 135.5 kB / 473.8 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001816/0.1414, allocations: 147.3 kB / 473.9 MB, free: 9.691 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.869e-05/0.1415, allocations: 24 kB / 473.9 MB, free: 9.668 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001152/0.1417, allocations: 40 kB / 474 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.425e-05/0.1417, allocations: 63.77 kB / 474 MB, free: 9.566 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001455/0.1419, allocations: 167.2 kB / 474.2 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003749/0.1423, allocations: 359 kB / 474.5 MB, free: 9.051 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1423, allocations: 0 / 474.5 MB, free: 9.051 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.1423, allocations: 0 / 474.5 MB, free: 9.051 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.1423, allocations: 3.938 kB / 474.6 MB, free: 9.047 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.000909/0.1432, allocations: 0.5927 MB / 475.1 MB, free: 8.406 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.1433, allocations: 11.97 kB / 475.2 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002406/0.1435, allocations: 52.53 kB / 475.2 MB, free: 8.344 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003383/0.1439, allocations: 263.7 kB / 475.5 MB, free: 8.047 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.229e-05/0.1439, allocations: 21.03 kB / 475.5 MB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.322e-05/0.144, allocations: 36.28 kB / 475.5 MB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000475/0.1444, allocations: 306.6 kB / 475.8 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.423e-05/0.1445, allocations: 7.906 kB / 475.8 MB, free: 7.664 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.883e-05/0.1445, allocations: 16 kB / 475.8 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/0.1445, allocations: 8 kB / 475.8 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003068/0.1448, allocations: 175.8 kB / 476 MB, free: 7.469 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001706/0.1465, allocations: 1.336 MB / 477.4 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004085/0.147, allocations: 253 kB / 477.6 MB, free: 5.734 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/0.1471, allocations: 80.2 kB / 477.7 MB, free: 5.641 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.1471, allocations: 3.984 kB / 477.7 MB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.1471, allocations: 46.56 kB / 477.7 MB, free: 5.582 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.974e-06/0.1471, allocations: 0 / 477.7 MB, free: 5.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004878/0.1476, allocations: 213.2 kB / 477.9 MB, free: 5.367 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.641e-05/0.1477, allocations: 162.2 kB / 478.1 MB, free: 5.172 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002107/0.148, allocations: 208.2 kB / 478.3 MB, free: 4.957 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.148, allocations: 29.7 kB / 478.3 MB, free: 4.922 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.1481, allocations: 196 kB / 478.5 MB, free: 4.727 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.798e-05/0.1482, allocations: 90.89 kB / 478.6 MB, free: 4.637 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.636e-05/0.1483, allocations: 73.55 kB / 478.7 MB, free: 4.559 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.1484, allocations: 334.8 kB / 479 MB, free: 4.223 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.1486, allocations: 63.97 kB / 479.1 MB, free: 4.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001899/0.1487, allocations: 201.9 kB / 479.3 MB, free: 3.898 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003242/0.1491, allocations: 297.7 kB / 479.6 MB, free: 3.543 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.1491, allocations: 4 kB / 479.6 MB, free: 3.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004356/0.1495, allocations: 313.4 kB / 479.9 MB, free: 3.227 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.1496, allocations: 4 kB / 479.9 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/0.1496, allocations: 12 kB / 479.9 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.1496, allocations: 4 kB / 479.9 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002693/0.1499, allocations: 92.02 kB / 480 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.627e-05/0.1499, allocations: 12 kB / 480 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000152/0.1501, allocations: 31.69 kB / 480 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.209e-05/0.1501, allocations: 19.94 kB / 480 MB, free: 3.055 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.0001344/0.1502, allocations: 157.7 kB / 480.2 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.1503, allocations: 27.66 kB / 480.2 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001626/0.1505, allocations: 87.08 kB / 480.3 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.1505, allocations: 7.984 kB / 480.3 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.1505, allocations: 0 / 480.3 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.1506, allocations: 4.562 kB / 480.3 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005786/0.1511, allocations: 313.3 kB / 480.6 MB, free: 2.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.1511, allocations: 4 kB / 480.6 MB, free: 2.402 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003045/0.1515, allocations: 67.91 kB / 480.7 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.114e-06/0.1515, allocations: 7.984 kB / 480.7 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.131e-05/0.1515, allocations: 8 kB / 480.7 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1515, allocations: 0 / 480.7 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1515, allocations: 4 kB / 480.7 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005306/0.152, allocations: 0.6408 MB / 481.4 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.434e-05/0.1521, allocations: 92.86 kB / 481.4 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.623e-05/0.1522, allocations: 8 kB / 481.5 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002365/0.1524, allocations: 12 kB / 481.5 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.645e-05/0.1525, allocations: 19.97 kB / 481.5 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/0.1525, allocations: 4 kB / 481.5 MB, free: 1.504 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001132/0.1526, allocations: 149.6 kB / 481.6 MB, free: 1.359 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1526, allocations: 7.938 kB / 481.6 MB, free: 1.352 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004948/0.1531, allocations: 83.69 kB / 481.7 MB, free: 1.27 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.0001097/0.1532, allocations: 99.25 kB / 481.8 MB, free: 1.164 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003193/0.1535, allocations: 208 kB / 482 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1535, allocations: 0 / 482 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.647e-05/0.1536, allocations: 76.28 kB / 482.1 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008343/0.1545, allocations: 65.64 kB / 482.2 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001674/0.1562, allocations: 1.11 MB / 483.3 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003596/0.1565, allocations: 0.7716 MB / 484 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001219/0.1567, allocations: 34.95 kB / 484.1 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.529e-05/0.1567, allocations: 23.44 kB / 484.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1567, allocations: 0 / 484.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of Templates: time 0.005643/0.1624, allocations: 2.474 MB / 486.6 MB, free: 12.38 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