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.001073/0.001073, allocations: 97.91 kB / 17 MB, free: 6.844 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.001262/0.001262, allocations: 182.3 kB / 17.89 MB, free: 6.078 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.425/1.425, allocations: 223.3 MB / 241.9 MB, free: 14.58 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.2335/0.2335, allocations: 44.25 MB / 337.3 MB, free: 2.543 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003429/0.000343, allocations: 5.469 kB / 409.7 MB, free: 27.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1246, allocations: 61.94 MB / 471.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003016/0.1276, allocations: 2.267 MB / 473.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002165/0.1298, allocations: 0.9119 MB / 474.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003505/0.1302, allocations: 7.938 kB / 474.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00021/0.1304, allocations: 35.7 kB / 474.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003027/0.1307, allocations: 87.3 kB / 474.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000522/0.1313, allocations: 111.7 kB / 475 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000486/0.1318, allocations: 350.3 kB / 475.3 MB, free: 9.906 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002041/0.132, allocations: 65.55 kB / 475.4 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002197/0.1322, allocations: 115.6 kB / 475.5 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002378/0.1325, allocations: 131.4 kB / 475.7 MB, free: 9.598 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.269e-05/0.1325, allocations: 12 kB / 475.7 MB, free: 9.586 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001272/0.1326, allocations: 35.98 kB / 475.7 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.382e-05/0.1327, allocations: 47.84 kB / 475.7 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.66e-05/0.1328, allocations: 81.52 kB / 475.8 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003464/0.1332, allocations: 259.5 kB / 476.1 MB, free: 9.164 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1332, allocations: 0 / 476.1 MB, free: 9.164 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1332, allocations: 0 / 476.1 MB, free: 9.164 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.1332, allocations: 0 / 476.1 MB, free: 9.164 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.0008867/0.1341, allocations: 0.5535 MB / 476.6 MB, free: 8.562 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.1342, allocations: 8.031 kB / 476.6 MB, free: 8.555 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002268/0.1344, allocations: 51.61 kB / 476.7 MB, free: 8.504 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003325/0.1347, allocations: 259 kB / 476.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.201e-05/0.1348, allocations: 20.66 kB / 477 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.745e-05/0.1348, allocations: 39.95 kB / 477 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004892/0.1353, allocations: 298.7 kB / 477.3 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.009e-05/0.1354, allocations: 11.84 kB / 477.3 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.366e-05/0.1354, allocations: 12 kB / 477.3 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.1354, allocations: 8 kB / 477.3 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003285/0.1358, allocations: 176.1 kB / 477.5 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001994/0.1378, allocations: 1.349 MB / 478.8 MB, free: 6.188 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004091/0.1382, allocations: 241 kB / 479.1 MB, free: 5.906 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000127/0.1383, allocations: 76.25 kB / 479.2 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.782e-05/0.1384, allocations: 7.938 kB / 479.2 MB, free: 5.809 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.638e-05/0.1384, allocations: 42.56 kB / 479.2 MB, free: 5.758 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.533e-06/0.1384, allocations: 0 / 479.2 MB, free: 5.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005177/0.1389, allocations: 217.6 kB / 479.4 MB, free: 5.539 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.184e-05/0.139, allocations: 158.2 kB / 479.6 MB, free: 5.348 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002194/0.1392, allocations: 212.1 kB / 479.8 MB, free: 5.129 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.903e-05/0.1393, allocations: 29.83 kB / 479.8 MB, free: 5.094 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/0.1394, allocations: 196.1 kB / 480 MB, free: 4.898 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.495e-05/0.1395, allocations: 90.66 kB / 480.1 MB, free: 4.809 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.309e-05/0.1395, allocations: 11.94 kB / 480.1 MB, free: 4.797 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.1397, allocations: 338.8 kB / 480.4 MB, free: 4.457 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.1398, allocations: 67.92 kB / 480.5 MB, free: 4.391 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002086/0.14, allocations: 198.5 kB / 480.7 MB, free: 4.133 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001798/0.1402, allocations: 99.88 kB / 480.8 MB, free: 4.035 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.1402, allocations: 0 / 480.8 MB, free: 4.035 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005167/0.1408, allocations: 321.4 kB / 481.1 MB, free: 3.715 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.1408, allocations: 8.094 kB / 481.1 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.1408, allocations: 4 kB / 481.1 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.294e-05/0.1409, allocations: 8 kB / 481.1 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002848/0.1411, allocations: 83.84 kB / 481.2 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.341e-05/0.1412, allocations: 11.98 kB / 481.2 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002005/0.1414, allocations: 35.69 kB / 481.3 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.603e-05/0.1414, allocations: 12 kB / 481.3 MB, free: 3.555 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.0001451/0.1416, allocations: 157.6 kB / 481.4 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.1417, allocations: 27.72 kB / 481.4 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001886/0.1419, allocations: 83.08 kB / 481.5 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.1419, allocations: 4 kB / 481.5 MB, free: 3.273 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.1419, allocations: 4 kB / 481.5 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.104e-06/0.1419, allocations: 3.984 kB / 481.5 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000591/0.1425, allocations: 317.3 kB / 481.8 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.1425, allocations: 3.938 kB / 481.9 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003259/0.1429, allocations: 63.97 kB / 481.9 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.104e-06/0.1429, allocations: 4 kB / 481.9 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.431e-05/0.1429, allocations: 11.98 kB / 481.9 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.1429, allocations: 4 kB / 481.9 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/0.1429, allocations: 11.88 kB / 481.9 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005702/0.1435, allocations: 0.6217 MB / 482.6 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.441e-05/0.1436, allocations: 100.9 kB / 482.7 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.535e-05/0.1436, allocations: 8 kB / 482.7 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002553/0.1439, allocations: 8.094 kB / 482.7 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.513e-05/0.144, allocations: 27.84 kB / 482.7 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/0.144, allocations: 4 kB / 482.7 MB, free: 2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001428/0.1441, allocations: 145.9 kB / 482.9 MB, free: 1.859 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1441, allocations: 0 / 482.9 MB, free: 1.859 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005432/0.1447, allocations: 83.75 kB / 482.9 MB, free: 1.777 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.0001398/0.1448, allocations: 100.3 kB / 483 MB, free: 1.672 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003583/0.1452, allocations: 187.7 kB / 483.2 MB, free: 1.488 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1452, allocations: 0 / 483.2 MB, free: 1.488 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001266/0.1453, allocations: 76.91 kB / 483.3 MB, free: 1.414 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007906/0.1461, allocations: 65.11 kB / 483.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001909/0.1481, allocations: 1.368 MB / 484.7 MB, free: 15.94 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004214/0.1485, allocations: 0.7798 MB / 485.5 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001362/0.1486, allocations: 30.97 kB / 485.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.597e-05/0.1487, allocations: 23.44 kB / 485.6 MB, free: 15.08 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1487, allocations: 0 / 485.6 MB, free: 15.08 MB / 366.1 MB Notification: Performance of Templates: time 0.006051/0.1548, allocations: 2.285 MB / 487.8 MB, free: 12.82 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