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.0009664/0.0009663, allocations: 96.89 kB / 16.93 MB, free: 5.984 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.001244/0.001244, allocations: 179.4 kB / 17.82 MB, free: 5.652 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.616/1.616, allocations: 205.4 MB / 224 MB, free: 13.17 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.0007906/0.0007907, allocations: 8 kB / 280.7 MB, free: 3.754 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1367, allocations: 47.58 MB / 328.3 MB, free: 4.102 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00369/0.1404, allocations: 1.88 MB / 330.2 MB, free: 2.207 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002329/0.1428, allocations: 0.9147 MB / 331.1 MB, free: 1.285 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000269/0.1431, allocations: 7.938 kB / 331.1 MB, free: 1.277 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001987/0.1433, allocations: 35.77 kB / 331.2 MB, free: 1.242 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007308/0.1441, allocations: 135.6 kB / 331.3 MB, free: 1.109 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005068/0.1446, allocations: 131.8 kB / 331.4 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005972/0.1452, allocations: 255.5 kB / 331.7 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002109/0.1454, allocations: 56.7 kB / 331.7 MB, free: 0.6758 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003735/0.1458, allocations: 163.5 kB / 331.9 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000465/0.1463, allocations: 183.4 kB / 332.1 MB, free: 344 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001028/0.1464, allocations: 16 kB / 332.1 MB, free: 328 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003133/0.1467, allocations: 91.8 kB / 332.2 MB, free: 236 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001854/0.1469, allocations: 75.78 kB / 332.2 MB, free: 160 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000132/0.1471, allocations: 77.58 kB / 332.3 MB, free: 76 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005011/0.1476, allocations: 319.4 kB / 332.6 MB, free: 15.76 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.1476, allocations: 4 kB / 332.6 MB, free: 15.76 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1477, allocations: 0 / 332.6 MB, free: 15.76 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.822e-05/0.1477, allocations: 0 / 332.6 MB, free: 15.76 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.001636/0.1493, allocations: 0.5808 MB / 333.2 MB, free: 15.13 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.1494, allocations: 8.031 kB / 333.2 MB, free: 15.12 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005549/0.15, allocations: 47.61 kB / 333.3 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006966/0.1507, allocations: 298.5 kB / 333.6 MB, free: 14.74 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000176/0.1509, allocations: 83.95 kB / 333.6 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.725e-05/0.151, allocations: 28 kB / 333.7 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001099/0.1521, allocations: 373.3 kB / 334 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.919e-05/0.1521, allocations: 7.891 kB / 334 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.296e-05/0.1522, allocations: 12 kB / 334.1 MB, free: 14.21 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.367e-05/0.1522, allocations: 4 kB / 334.1 MB, free: 14.21 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001418/0.1537, allocations: 433.9 kB / 334.5 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003275/0.157, allocations: 1.257 MB / 335.7 MB, free: 12.46 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001026/0.158, allocations: 351.2 kB / 336.1 MB, free: 12.11 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.165e-05/0.1581, allocations: 7.984 kB / 336.1 MB, free: 12.1 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.588e-05/0.1581, allocations: 46.5 kB / 336.1 MB, free: 12.04 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 2.995e-06/0.1581, allocations: 3.938 kB / 336.1 MB, free: 12.04 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.007591/0.1657, allocations: 1.942 MB / 338.1 MB, free: 9.984 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.013e-05/0.1659, allocations: 88.86 kB / 338.2 MB, free: 9.879 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004758/0.1663, allocations: 234.3 kB / 338.4 MB, free: 9.637 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.945e-05/0.1664, allocations: 37.7 kB / 338.4 MB, free: 9.594 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001684/0.1666, allocations: 136.6 kB / 338.6 MB, free: 9.457 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002033/0.1668, allocations: 141.9 kB / 338.7 MB, free: 9.316 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.461e-05/0.1669, allocations: 15.98 kB / 338.7 MB, free: 9.301 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002017/0.1671, allocations: 334.8 kB / 339.1 MB, free: 8.965 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005895/0.1677, allocations: 172.8 kB / 339.2 MB, free: 8.797 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005883/0.1683, allocations: 225.9 kB / 339.4 MB, free: 8.555 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003606/0.1687, allocations: 164.8 kB / 339.6 MB, free: 8.398 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-06/0.1687, allocations: 4 kB / 339.6 MB, free: 8.395 MB / 286.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001336/0.1701, allocations: 0.5551 MB / 340.2 MB, free: 7.828 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.938e-05/0.1701, allocations: 4 kB / 340.2 MB, free: 7.824 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.1701, allocations: 7.875 kB / 340.2 MB, free: 7.816 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007752/0.1709, allocations: 256.8 kB / 340.4 MB, free: 7.562 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002494/0.1712, allocations: 55.97 kB / 340.5 MB, free: 7.508 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004009/0.1752, allocations: 2.703 MB / 343.2 MB, free: 4.672 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002838/0.1755, allocations: 36 kB / 343.2 MB, free: 4.637 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.198e-05/0.1755, allocations: 16 kB / 343.2 MB, free: 4.621 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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * 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 (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: 0 * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001986/0.1757, allocations: 157.8 kB / 343.4 MB, free: 4.457 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.878e-05/0.1758, allocations: 27.62 kB / 343.4 MB, free: 4.43 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001009/0.1759, allocations: 46.98 kB / 343.5 MB, free: 4.383 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.1759, allocations: 4 kB / 343.5 MB, free: 4.379 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.176, allocations: 3.953 kB / 343.5 MB, free: 4.375 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.176, allocations: 0 / 343.5 MB, free: 4.375 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00199/0.178, allocations: 1.093 MB / 344.6 MB, free: 3.223 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.178, allocations: 0 / 344.6 MB, free: 3.223 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002225/0.1782, allocations: 51.92 kB / 344.6 MB, free: 3.172 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006701/0.1789, allocations: 244.8 kB / 344.9 MB, free: 2.93 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.571e-05/0.1789, allocations: 11.98 kB / 344.9 MB, free: 2.918 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003652/0.1826, allocations: 2.647 MB / 347.5 MB, free: 140 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.1826, allocations: 0 / 347.5 MB, free: 140 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001496/0.1841, allocations: 0.8334 MB / 348.3 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001822/0.1843, allocations: 144.7 kB / 348.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.852e-05/0.1844, allocations: 16 kB / 348.5 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002699/0.1847, allocations: 32.03 kB / 348.5 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001506/0.1848, allocations: 67.88 kB / 348.6 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.129e-05/0.1849, allocations: 15.98 kB / 348.6 MB, free: 15 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002057/0.1851, allocations: 176.3 kB / 348.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1851, allocations: 0 / 348.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006332/0.1857, allocations: 147.9 kB / 348.9 MB, free: 14.68 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 (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: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002704/0.186, allocations: 131.2 kB / 349.1 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001303/0.1873, allocations: 0.6212 MB / 349.7 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1873, allocations: 0 / 349.7 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007761/0.1881, allocations: 433.6 kB / 350.1 MB, free: 13.47 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.1884, allocations: 40 kB / 350.1 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001404/0.1899, allocations: 0.8347 MB / 351 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003909/0.1903, allocations: 0.7803 MB / 351.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000201/0.1905, allocations: 62.94 kB / 351.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.048e-05/0.1906, allocations: 23.42 kB / 351.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1906, allocations: 4 kB / 351.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of Templates: time 0.01243/0.203, allocations: 6.362 MB / 358.2 MB, free: 5.312 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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