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.001072/0.001072, allocations: 108.3 kB / 18.41 MB, free: 4.566 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.001033/0.001033, allocations: 187 kB / 19.34 MB, free: 3.641 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.354/1.354, allocations: 222.9 MB / 243 MB, free: 15.08 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.2072/0.2072, allocations: 44.17 MB / 337.4 MB, free: 2.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 65.91 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1354, allocations: 60.83 MB / 470.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004198/0.1397, allocations: 2.702 MB / 473.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001574/0.1412, allocations: 0.9502 MB / 474.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001507/0.1414, allocations: 7.938 kB / 474.4 MB, free: 10 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001695/0.1416, allocations: 51.52 kB / 474.4 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001703/0.1418, allocations: 103 kB / 474.5 MB, free: 9.848 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004374/0.1422, allocations: 135.6 kB / 474.6 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003633/0.1426, allocations: 374.2 kB / 475 MB, free: 9.348 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000194/0.1428, allocations: 93.11 kB / 475.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001322/0.1429, allocations: 135.5 kB / 475.2 MB, free: 9.121 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001986/0.1431, allocations: 143.3 kB / 475.4 MB, free: 8.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.764e-05/0.1432, allocations: 24 kB / 475.4 MB, free: 8.957 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001181/0.1433, allocations: 43.98 kB / 475.4 MB, free: 8.914 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.611e-05/0.1434, allocations: 59.77 kB / 475.5 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001692/0.1435, allocations: 159.3 kB / 475.7 MB, free: 8.699 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003846/0.1439, allocations: 374.6 kB / 476 MB, free: 8.332 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.144, allocations: 0 / 476 MB, free: 8.332 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.144, allocations: 4 kB / 476 MB, free: 8.328 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.144, allocations: 0 / 476 MB, free: 8.328 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.0009152/0.1449, allocations: 0.5849 MB / 476.6 MB, free: 7.695 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.145, allocations: 12.03 kB / 476.6 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002227/0.1452, allocations: 48.55 kB / 476.7 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003713/0.1456, allocations: 271.7 kB / 476.9 MB, free: 7.332 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.456e-05/0.1456, allocations: 21.03 kB / 477 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.72e-05/0.1457, allocations: 36.28 kB / 477 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004662/0.1461, allocations: 302.6 kB / 477.3 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.718e-05/0.1462, allocations: 11.89 kB / 477.3 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.924e-05/0.1462, allocations: 16 kB / 477.3 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.1462, allocations: 11.94 kB / 477.3 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003058/0.1465, allocations: 171.8 kB / 477.5 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001847/0.1484, allocations: 1.34 MB / 478.8 MB, free: 5.309 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003849/0.1488, allocations: 245 kB / 479.1 MB, free: 5.023 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.1489, allocations: 76.27 kB / 479.1 MB, free: 4.934 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.195e-05/0.1489, allocations: 0 / 479.1 MB, free: 4.934 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.984e-05/0.149, allocations: 50.48 kB / 479.2 MB, free: 4.875 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.162e-06/0.149, allocations: 0 / 479.2 MB, free: 4.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004774/0.1495, allocations: 217.4 kB / 479.4 MB, free: 4.656 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.584e-05/0.1495, allocations: 158.2 kB / 479.6 MB, free: 4.465 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000184/0.1497, allocations: 208.2 kB / 479.8 MB, free: 4.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.1498, allocations: 29.7 kB / 479.8 MB, free: 4.215 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.1499, allocations: 191.9 kB / 480 MB, free: 4.023 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.295e-05/0.1499, allocations: 94.86 kB / 480.1 MB, free: 3.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.272e-05/0.15, allocations: 73.55 kB / 480.1 MB, free: 3.852 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.1502, allocations: 338.8 kB / 480.5 MB, free: 3.512 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001057/0.1503, allocations: 59.98 kB / 480.5 MB, free: 3.453 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001864/0.1505, allocations: 209.9 kB / 480.7 MB, free: 3.184 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003635/0.1508, allocations: 293.7 kB / 481 MB, free: 2.832 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.1508, allocations: 8 kB / 481 MB, free: 2.824 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004302/0.1513, allocations: 312.9 kB / 481.3 MB, free: 2.512 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.1513, allocations: 8.531 kB / 481.3 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.1513, allocations: 4 kB / 481.4 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.1513, allocations: 8 kB / 481.4 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002841/0.1516, allocations: 91.84 kB / 481.5 MB, free: 2.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.325e-05/0.1517, allocations: 7.984 kB / 481.5 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001574/0.1518, allocations: 35.78 kB / 481.5 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.991e-05/0.1518, allocations: 15.94 kB / 481.5 MB, free: 2.344 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.0001429/0.152, allocations: 157.6 kB / 481.7 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.1521, allocations: 24.28 kB / 481.7 MB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001613/0.1523, allocations: 87.33 kB / 481.8 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.463e-06/0.1523, allocations: 8 kB / 481.8 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/0.1523, allocations: 4 kB / 481.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.1523, allocations: 7.922 kB / 481.8 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005411/0.1529, allocations: 317.3 kB / 482.1 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.1529, allocations: 0 / 482.1 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000314/0.1532, allocations: 63.97 kB / 482.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.1532, allocations: 4 kB / 482.2 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.241e-05/0.1532, allocations: 11.98 kB / 482.2 MB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.1532, allocations: 0 / 482.2 MB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.1532, allocations: 7.938 kB / 482.2 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005165/0.1538, allocations: 0.6331 MB / 482.8 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.188e-05/0.1538, allocations: 100.9 kB / 482.9 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.24e-05/0.1539, allocations: 0 / 482.9 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000245/0.1541, allocations: 8 kB / 482.9 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.087e-05/0.1542, allocations: 24.03 kB / 482.9 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.1542, allocations: 11.92 kB / 483 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000109/0.1543, allocations: 153.6 kB / 483.1 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1543, allocations: 0 / 483.1 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004902/0.1548, allocations: 83.69 kB / 483.2 MB, free: 0.5586 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 9.978e-05/0.1549, allocations: 103.2 kB / 483.3 MB, free: 460 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003224/0.1552, allocations: 191.5 kB / 483.5 MB, free: 268 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.1553, allocations: 4 kB / 483.5 MB, free: 264 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001008/0.1554, allocations: 71.91 kB / 483.6 MB, free: 192 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007663/0.1561, allocations: 66.69 kB / 483.6 MB, free: 128 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001566/0.1577, allocations: 1.125 MB / 484.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003312/0.1581, allocations: 0.7677 MB / 485.5 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001038/0.1582, allocations: 34.97 kB / 485.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.198e-05/0.1582, allocations: 19.44 kB / 485.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1582, allocations: 0 / 485.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of Templates: time 0.005446/0.1637, allocations: 2.474 MB / 488 MB, free: 11.67 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches