Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00149/0.00149, allocations: 106.7 kB / 17.15 MB, free: 6.328 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.001654/0.001654, allocations: 198 kB / 18.07 MB, free: 5.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.443/1.443, allocations: 205.1 MB / 223.9 MB, free: 12.48 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001165, allocations: 44.2 kB / 280 MB, free: 3.602 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1354, allocations: 46.65 MB / 326.6 MB, free: 4.891 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00522/0.1407, allocations: 2.38 MB / 329 MB, free: 2.488 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002869/0.1436, allocations: 0.9687 MB / 330 MB, free: 1.512 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001464/0.1438, allocations: 4 kB / 330 MB, free: 1.508 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003578/0.1442, allocations: 35.77 kB / 330 MB, free: 1.473 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005349/0.1448, allocations: 103.4 kB / 330.1 MB, free: 1.371 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004725/0.1452, allocations: 155.8 kB / 330.2 MB, free: 1.219 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004562/0.1457, allocations: 398.8 kB / 330.6 MB, free: 0.8281 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002109/0.1459, allocations: 56.7 kB / 330.7 MB, free: 0.7734 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002503/0.1462, allocations: 171.4 kB / 330.9 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003052/0.1465, allocations: 203.3 kB / 331.1 MB, free: 416 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.969e-05/0.1466, allocations: 20 kB / 331.1 MB, free: 396 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00023/0.1468, allocations: 103.9 kB / 331.2 MB, free: 292 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000159/0.147, allocations: 83.7 kB / 331.3 MB, free: 208 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001882/0.1472, allocations: 155.2 kB / 331.4 MB, free: 52 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006364/0.1478, allocations: 426.9 kB / 331.8 MB, free: 15.63 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.1478, allocations: 3.938 kB / 331.8 MB, free: 15.63 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1478, allocations: 0 / 331.8 MB, free: 15.63 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.236e-05/0.1479, allocations: 0 / 331.8 MB, free: 15.63 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.00183/0.1497, allocations: 0.6355 MB / 332.5 MB, free: 14.95 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.1497, allocations: 8.031 kB / 332.5 MB, free: 14.94 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004231/0.1502, allocations: 52.53 kB / 332.5 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004821/0.1507, allocations: 303.7 kB / 332.8 MB, free: 14.55 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001375/0.1508, allocations: 88.52 kB / 332.9 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.117e-05/0.1509, allocations: 24.38 kB / 332.9 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008799/0.1518, allocations: 377.4 kB / 333.3 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.832e-05/0.1518, allocations: 0 / 333.3 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.081e-05/0.1519, allocations: 12 kB / 333.3 MB, free: 14.03 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.642e-05/0.1519, allocations: 12 kB / 333.3 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001043/0.1529, allocations: 417.9 kB / 333.7 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002238/0.1552, allocations: 1.234 MB / 335 MB, free: 12.3 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007624/0.156, allocations: 358.5 kB / 335.3 MB, free: 11.94 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003731/0.1563, allocations: 192.7 kB / 335.5 MB, free: 11.75 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.662e-05/0.1564, allocations: 8.094 kB / 335.5 MB, free: 11.74 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.909e-05/0.1564, allocations: 34.56 kB / 335.5 MB, free: 11.7 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 1.372e-06/0.1564, allocations: 0 / 335.5 MB, free: 11.7 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.005043/0.1615, allocations: 1.926 MB / 337.5 MB, free: 9.66 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.722e-05/0.1615, allocations: 88.86 kB / 337.6 MB, free: 9.555 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003012/0.1619, allocations: 242.2 kB / 337.8 MB, free: 9.305 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.779e-05/0.1619, allocations: 37.7 kB / 337.8 MB, free: 9.262 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.162, allocations: 136.6 kB / 338 MB, free: 9.125 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001727/0.1622, allocations: 145.9 kB / 338.1 MB, free: 8.98 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00015/0.1624, allocations: 82.11 kB / 338.2 MB, free: 8.895 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002171/0.1626, allocations: 334.8 kB / 338.5 MB, free: 8.559 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003669/0.163, allocations: 164.8 kB / 338.7 MB, free: 8.398 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004926/0.1635, allocations: 233.9 kB / 338.9 MB, free: 8.148 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000686/0.1642, allocations: 351.2 kB / 339.2 MB, free: 7.793 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.1642, allocations: 0 / 339.2 MB, free: 7.793 MB / 286.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001117/0.1653, allocations: 0.5551 MB / 339.8 MB, free: 7.23 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.685e-05/0.1653, allocations: 8 kB / 339.8 MB, free: 7.223 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.1654, allocations: 0 / 339.8 MB, free: 7.223 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000759/0.1661, allocations: 248.8 kB / 340.1 MB, free: 6.977 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002473/0.1664, allocations: 51.91 kB / 340.1 MB, free: 6.926 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004072/0.1705, allocations: 2.651 MB / 342.8 MB, free: 4.141 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002575/0.1707, allocations: 28.02 kB / 342.8 MB, free: 4.113 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.234e-05/0.1708, allocations: 19.98 kB / 342.8 MB, free: 4.094 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0003284/0.1711, allocations: 153.7 kB / 343 MB, free: 3.934 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.204e-05/0.1712, allocations: 31.72 kB / 343 MB, free: 3.902 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.436e-05/0.1713, allocations: 46.98 kB / 343 MB, free: 3.855 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-06/0.1713, allocations: 4 kB / 343 MB, free: 3.852 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/0.1713, allocations: 4 kB / 343 MB, free: 3.848 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.1713, allocations: 0 / 343 MB, free: 3.848 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002162/0.1735, allocations: 1.1 MB / 344.1 MB, free: 2.688 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.1735, allocations: 4 kB / 344.1 MB, free: 2.684 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002202/0.1738, allocations: 43.97 kB / 344.2 MB, free: 2.641 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006727/0.1744, allocations: 244.8 kB / 344.4 MB, free: 2.398 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.251e-05/0.1745, allocations: 8 kB / 344.4 MB, free: 2.391 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004094/0.1786, allocations: 2.593 MB / 347 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1786, allocations: 0 / 347 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001604/0.1802, allocations: 0.8218 MB / 347.8 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001715/0.1804, allocations: 140.8 kB / 348 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.595e-05/0.1805, allocations: 4 kB / 348 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002645/0.1807, allocations: 23.98 kB / 348 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/0.1809, allocations: 63.83 kB / 348.1 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.764e-05/0.181, allocations: 15.98 kB / 348.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002438/0.1812, allocations: 180.3 kB / 348.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1812, allocations: 0 / 348.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007328/0.182, allocations: 140.1 kB / 348.4 MB, free: 14.24 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003296/0.1823, allocations: 135.2 kB / 348.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00143/0.1838, allocations: 0.6291 MB / 349.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.1838, allocations: 0 / 349.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007255/0.1845, allocations: 433.3 kB / 349.6 MB, free: 13.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004164/0.1849, allocations: 35.92 kB / 349.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001425/0.1864, allocations: 0.8104 MB / 350.4 MB, free: 12.15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004628/0.1868, allocations: 0.7803 MB / 351.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000201/0.187, allocations: 58.95 kB / 351.3 MB, free: 11.28 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.488e-05/0.1871, allocations: 31.36 kB / 351.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1871, allocations: 0 / 351.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of Templates: time 0.01237/0.1995, allocations: 6.667 MB / 358 MB, free: 4.578 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches