Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009599/0.0009599, allocations: 96.25 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009647/0.0009647, allocations: 192.2 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.7 MB / 246.4 MB, free: 11.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2195/0.2195, allocations: 46.18 MB / 344.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003894/0.0003896, allocations: 12 kB / 418.8 MB, free: 20.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.153, allocations: 63.56 MB / 482.4 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003067/0.1561, allocations: 1.603 MB / 484 MB, free: 2.934 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.1574, allocations: 0.5186 MB / 484.5 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001146/0.1575, allocations: 0 / 484.5 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001363/0.1577, allocations: 15.86 kB / 484.5 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001043/0.1578, allocations: 43.67 kB / 484.6 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002497/0.158, allocations: 31.97 kB / 484.6 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002406/0.1583, allocations: 139.3 kB / 484.7 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002021/0.1585, allocations: 41.8 kB / 484.8 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001813/0.1587, allocations: 51.78 kB / 484.8 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001387/0.1588, allocations: 59.7 kB / 484.9 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.468e-05/0.1589, allocations: 8 kB / 484.9 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.375e-05/0.159, allocations: 16 kB / 484.9 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.478e-05/0.159, allocations: 19.91 kB / 484.9 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.744e-05/0.1591, allocations: 53.64 kB / 485 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001834/0.1593, allocations: 111.9 kB / 485.1 MB, free: 1.816 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.1593, allocations: 4 kB / 485.1 MB, free: 1.812 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1593, allocations: 0 / 485.1 MB, free: 1.812 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.1594, allocations: 0 / 485.1 MB, free: 1.812 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.000786/0.1602, allocations: 410.9 kB / 485.5 MB, free: 1.363 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.561e-05/0.1602, allocations: 12.03 kB / 485.5 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002044/0.1604, allocations: 27.8 kB / 485.5 MB, free: 1.324 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003109/0.1608, allocations: 206.9 kB / 485.7 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.33e-05/0.1608, allocations: 8 kB / 485.7 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.718e-05/0.1609, allocations: 19.84 kB / 485.8 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003943/0.1613, allocations: 130.1 kB / 485.9 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.1613, allocations: 4 kB / 485.9 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.416e-05/0.1613, allocations: 4 kB / 485.9 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.244e-05/0.1614, allocations: 4 kB / 485.9 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000299/0.1617, allocations: 91.92 kB / 486 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00105/0.1627, allocations: 480.1 kB / 486.5 MB, free: 308 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003159/0.1631, allocations: 122.5 kB / 486.6 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001786/0.1633, allocations: 56.84 kB / 486.6 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.718e-05/0.1633, allocations: 4 kB / 486.6 MB, free: 112 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.226e-05/0.1634, allocations: 34.56 kB / 486.7 MB, free: 68 kB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 2.234e-06/0.1634, allocations: 0 / 486.7 MB, free: 68 kB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.002197/0.1656, allocations: 0.8201 MB / 487.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.227e-05/0.1657, allocations: 55.39 kB / 487.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001778/0.1658, allocations: 144.2 kB / 487.7 MB, free: 14.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.352e-05/0.1659, allocations: 29.7 kB / 487.7 MB, free: 14.9 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.039e-05/0.166, allocations: 112.3 kB / 487.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.278e-05/0.1661, allocations: 63.02 kB / 487.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.828e-05/0.1661, allocations: 4 kB / 487.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.1663, allocations: 326.8 kB / 488.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000155/0.1665, allocations: 44.36 kB / 488.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000186/0.1667, allocations: 80.16 kB / 488.3 MB, free: 14.26 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001882/0.1669, allocations: 55.81 kB / 488.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1669, allocations: 0 / 488.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006021/0.1675, allocations: 214.1 kB / 488.6 MB, free: 13.99 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.548e-05/0.1675, allocations: 4 kB / 488.6 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.1676, allocations: 0 / 488.6 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002721/0.1678, allocations: 48.77 kB / 488.7 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002285/0.1681, allocations: 31.98 kB / 488.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002121/0.1702, allocations: 1.562 MB / 490.2 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001277/0.1704, allocations: 8.016 kB / 490.3 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.109e-05/0.1704, allocations: 8 kB / 490.3 MB, free: 12.2 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001827/0.1706, allocations: 133.8 kB / 490.4 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.712e-05/0.1707, allocations: 15.81 kB / 490.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.065e-05/0.1707, allocations: 21.14 kB / 490.4 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/0.1708, allocations: 4 kB / 490.4 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.1708, allocations: 3.938 kB / 490.4 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.1708, allocations: 3.984 kB / 490.4 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.1718, allocations: 0.5533 MB / 491 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.601e-05/0.1718, allocations: 3.984 kB / 491 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002692/0.1721, allocations: 35.98 kB / 491 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001476/0.1723, allocations: 32.88 kB / 491.1 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.343e-05/0.1723, allocations: 4 kB / 491.1 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00161/0.1739, allocations: 1.374 MB / 492.4 MB, free: 9.809 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.1739, allocations: 0 / 492.4 MB, free: 9.809 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008067/0.1748, allocations: 353.3 kB / 492.8 MB, free: 9.441 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.754e-05/0.1748, allocations: 89.17 kB / 492.9 MB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.923e-05/0.1749, allocations: 4.016 kB / 492.9 MB, free: 9.332 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001589/0.175, allocations: 12 kB / 492.9 MB, free: 9.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.288e-05/0.1751, allocations: 15.97 kB / 492.9 MB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.692e-05/0.1752, allocations: 11.94 kB / 492.9 MB, free: 9.293 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001243/0.1753, allocations: 105.5 kB / 493 MB, free: 9.191 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1753, allocations: 0 / 493 MB, free: 9.191 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005387/0.1758, allocations: 44 kB / 493.1 MB, free: 9.148 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * Single equations (assignments): 15 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001635/0.176, allocations: 103.2 kB / 493.2 MB, free: 9.039 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006564/0.1767, allocations: 254.5 kB / 493.4 MB, free: 8.777 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1767, allocations: 0 / 493.4 MB, free: 8.777 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000336/0.177, allocations: 198.6 kB / 493.6 MB, free: 8.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004915/0.1776, allocations: 23.94 kB / 493.6 MB, free: 8.547 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001196/0.1788, allocations: 0.5136 MB / 494.1 MB, free: 8.004 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004325/0.1792, allocations: 0.7207 MB / 494.9 MB, free: 7.254 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.609e-05/0.1793, allocations: 13.42 kB / 494.9 MB, free: 7.242 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.937e-05/0.1794, allocations: 15.44 kB / 494.9 MB, free: 7.227 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1794, allocations: 0 / 494.9 MB, free: 7.227 MB / 366.1 MB Notification: Performance of Templates: time 0.005969/0.1853, allocations: 1.464 MB / 496.4 MB, free: 5.77 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches