Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed") translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009323/0.0009323, allocations: 95.91 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001017/0.001017, allocations: 206.8 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 227.2 MB / 245.9 MB, free: 12.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2298/0.2298, allocations: 45.91 MB / 344 MB, free: 12.37 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002589/0.0002589, allocations: 8 kB / 417.9 MB, free: 20.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.1393, allocations: 63.47 MB / 481.4 MB, free: 5.461 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.002991/0.1423, allocations: 2.121 MB / 483.5 MB, free: 3.324 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00118/0.1435, allocations: 0.6705 MB / 484.2 MB, free: 2.648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001322/0.1437, allocations: 11.94 kB / 484.2 MB, free: 2.637 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.616e-05/0.1437, allocations: 27.77 kB / 484.2 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000214/0.144, allocations: 107.7 kB / 484.3 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000232/0.1442, allocations: 63.92 kB / 484.4 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002948/0.1445, allocations: 223.5 kB / 484.6 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001575/0.1447, allocations: 61.58 kB / 484.7 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002139/0.1449, allocations: 115.6 kB / 484.8 MB, free: 2.051 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001604/0.1451, allocations: 119.4 kB / 484.9 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.685e-05/0.1451, allocations: 12 kB / 484.9 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.477e-05/0.1452, allocations: 12 kB / 484.9 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.705e-05/0.1452, allocations: 47.83 kB / 485 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.83e-05/0.1453, allocations: 77.52 kB / 485 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002365/0.1455, allocations: 215.7 kB / 485.2 MB, free: 1.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.1455, allocations: 0 / 485.2 MB, free: 1.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1455, allocations: 0 / 485.2 MB, free: 1.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.011e-06/0.1456, allocations: 0 / 485.2 MB, free: 1.57 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0008105/0.1464, allocations: 0.5456 MB / 485.8 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.1464, allocations: 8.031 kB / 485.8 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002567/0.1467, allocations: 59.59 kB / 485.9 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003105/0.147, allocations: 259.5 kB / 486.1 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.342e-05/0.147, allocations: 24.56 kB / 486.1 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.402e-05/0.1471, allocations: 32 kB / 486.2 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004594/0.1476, allocations: 277.9 kB / 486.4 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.103e-05/0.1476, allocations: 11.89 kB / 486.4 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.54e-05/0.1476, allocations: 12 kB / 486.5 MB, free: 248 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.1476, allocations: 4 kB / 486.5 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004201/0.1481, allocations: 207.7 kB / 486.7 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001623/0.1497, allocations: 1.317 MB / 488 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003892/0.1501, allocations: 250.4 kB / 488.2 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/0.1501, allocations: 8.266 kB / 488.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.635e-05/0.1502, allocations: 46.52 kB / 488.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.483e-06/0.1502, allocations: 0 / 488.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.002442/0.1526, allocations: 1.622 MB / 489.9 MB, free: 12.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.815e-05/0.1527, allocations: 136.5 kB / 490 MB, free: 12.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001894/0.1529, allocations: 217 kB / 490.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.444e-05/0.1529, allocations: 33.7 kB / 490.3 MB, free: 12.01 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.1531, allocations: 180.2 kB / 490.5 MB, free: 11.83 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.724e-05/0.1531, allocations: 114.3 kB / 490.6 MB, free: 11.72 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.087e-05/0.1532, allocations: 4 kB / 490.6 MB, free: 11.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.1533, allocations: 342.8 kB / 490.9 MB, free: 11.37 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002602/0.1536, allocations: 108.8 kB / 491 MB, free: 11.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000334/0.1539, allocations: 257.4 kB / 491.3 MB, free: 10.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002793/0.1542, allocations: 141.4 kB / 491.4 MB, free: 10.81 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1542, allocations: 0 / 491.4 MB, free: 10.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007409/0.155, allocations: 420.8 kB / 491.8 MB, free: 10.39 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.155, allocations: 4 kB / 491.8 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.155, allocations: 8 kB / 491.8 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.155, allocations: 4 kB / 491.8 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003777/0.1554, allocations: 116.2 kB / 491.9 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.1554, allocations: 12.66 kB / 492 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000203/0.1556, allocations: 35.92 kB / 492 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.542e-05/0.1557, allocations: 20 kB / 492 MB, free: 10.2 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * Single equations (assignments): 48 * 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.0001264/0.1558, allocations: 154.2 kB / 492.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.312e-05/0.1559, allocations: 35.61 kB / 492.2 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.167e-05/0.156, allocations: 29.72 kB / 492.2 MB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.156, allocations: 4 kB / 492.2 MB, free: 9.973 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.156, allocations: 4 kB / 492.2 MB, free: 9.969 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.156, allocations: 3.984 kB / 492.2 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00134/0.1573, allocations: 1.005 MB / 493.2 MB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.1574, allocations: 12.12 kB / 493.3 MB, free: 8.883 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003676/0.1577, allocations: 83.88 kB / 493.3 MB, free: 8.801 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.1577, allocations: 0 / 493.3 MB, free: 8.801 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.999e-05/0.1578, allocations: 8 kB / 493.3 MB, free: 8.793 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.1578, allocations: 7.953 kB / 493.4 MB, free: 8.785 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.1578, allocations: 0 / 493.4 MB, free: 8.785 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009492/0.1587, allocations: 0.8232 MB / 494.2 MB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.777e-05/0.1588, allocations: 100.8 kB / 494.3 MB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.991e-05/0.1589, allocations: 8.047 kB / 494.3 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002798/0.1591, allocations: 27.98 kB / 494.3 MB, free: 7.754 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.153e-05/0.1592, allocations: 31.86 kB / 494.3 MB, free: 7.723 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.664e-05/0.1592, allocations: 12.23 kB / 494.4 MB, free: 7.711 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001131/0.1594, allocations: 156.5 kB / 494.5 MB, free: 7.562 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1594, allocations: 0 / 494.5 MB, free: 7.562 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004559/0.1598, allocations: 64 kB / 494.6 MB, free: 7.5 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * Single equations (assignments): 32 * 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.0001043/0.1599, allocations: 111.2 kB / 494.7 MB, free: 7.383 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005949/0.1605, allocations: 303.7 kB / 495 MB, free: 7.086 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.145e-06/0.1605, allocations: 0.75 kB / 495 MB, free: 7.086 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002733/0.1608, allocations: 139.8 kB / 495.1 MB, free: 6.949 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004292/0.1613, allocations: 46.86 kB / 495.2 MB, free: 6.906 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00142/0.1627, allocations: 1.062 MB / 496.2 MB, free: 5.801 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003004/0.163, allocations: 0.78 MB / 497 MB, free: 4.988 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001357/0.1632, allocations: 34.95 kB / 497 MB, free: 4.953 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.612e-05/0.1632, allocations: 27.42 kB / 497.1 MB, free: 4.926 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1632, allocations: 4 kB / 497.1 MB, free: 4.922 MB / 366.1 MB Notification: Performance of Templates: time 0.004826/0.1681, allocations: 2.086 MB / 499.2 MB, free: 2.848 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches