Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001435/0.001435, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001518/0.001518, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.476/1.476, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.817e-06/3.817e-06, allocations: 3.984 kB / 272.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.719e-05/3.101e-05, allocations: 2.312 kB / 272.3 MB, free: 1.84 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004246/0.004277, allocations: 2.416 MB / 274.7 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0025/0.006776, allocations: 1.08 MB / 275.8 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001413/0.006918, allocations: 4 kB / 275.8 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003389/0.007257, allocations: 67.42 kB / 275.9 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005454/0.007802, allocations: 175.9 kB / 276.1 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004915/0.008294, allocations: 191.5 kB / 276.2 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006546/0.008948, allocations: 0.5217 MB / 276.8 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001791/0.009127, allocations: 65.11 kB / 276.8 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005471/0.009674, allocations: 319.3 kB / 277.1 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003686/0.01004, allocations: 231.5 kB / 277.4 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.12e-05/0.01013, allocations: 44 kB / 277.4 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000271/0.01041, allocations: 131.9 kB / 277.5 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001644/0.01057, allocations: 119.6 kB / 277.6 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001841/0.01075, allocations: 147.6 kB / 277.8 MB, free: 12.33 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008138/0.01157, allocations: 0.5919 MB / 278.4 MB, free: 11.74 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.01157, allocations: 0 / 278.4 MB, free: 11.74 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.01157, allocations: 0 / 278.4 MB, free: 11.74 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.01158, allocations: 0 / 278.4 MB, free: 11.74 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001524/0.0131, allocations: 0.6414 MB / 279 MB, free: 11.07 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.01315, allocations: 8.031 kB / 279 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004956/0.01365, allocations: 92.67 kB / 279.1 MB, free: 10.97 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006076/0.01425, allocations: 261.1 kB / 279.4 MB, free: 10.69 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001981/0.01445, allocations: 144 kB / 279.5 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.429e-05/0.01454, allocations: 36.33 kB / 279.6 MB, free: 10.49 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009394/0.01548, allocations: 447.2 kB / 280 MB, free: 10.03 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.951e-05/0.0155, allocations: 4.188 kB / 280 MB, free: 10.03 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.979e-05/0.01555, allocations: 12.12 kB / 280 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.01556, allocations: 8 kB / 280 MB, free: 10.01 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001123/0.01668, allocations: 466.2 kB / 280.5 MB, free: 9.555 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001844/0.01852, allocations: 0.8001 MB / 281.3 MB, free: 8.723 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009637/0.01949, allocations: 369.2 kB / 281.6 MB, free: 8.355 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005412/0.02003, allocations: 206.3 kB / 281.8 MB, free: 8.152 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.348e-05/0.02007, allocations: 12.5 kB / 281.8 MB, free: 8.141 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.103e-05/0.02011, allocations: 39.19 kB / 281.9 MB, free: 8.094 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 1.482e-06/0.02012, allocations: 0 / 281.9 MB, free: 8.094 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.006153/0.02627, allocations: 1.926 MB / 283.8 MB, free: 6.113 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.798e-05/0.02635, allocations: 89.61 kB / 283.9 MB, free: 6.008 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003742/0.02672, allocations: 247.8 kB / 284.1 MB, free: 5.754 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.295e-05/0.02677, allocations: 37.7 kB / 284.2 MB, free: 5.711 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.02693, allocations: 149.1 kB / 284.3 MB, free: 5.562 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002017/0.02713, allocations: 194.3 kB / 284.5 MB, free: 5.371 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001814/0.02731, allocations: 90.17 kB / 284.6 MB, free: 5.277 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.02751, allocations: 338.8 kB / 284.9 MB, free: 4.938 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005198/0.02803, allocations: 196.9 kB / 285.1 MB, free: 4.746 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005714/0.0286, allocations: 265.7 kB / 285.4 MB, free: 4.469 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009653/0.02956, allocations: 387.6 kB / 285.8 MB, free: 4.086 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.02956, allocations: 4 kB / 285.8 MB, free: 4.082 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001585/0.03115, allocations: 0.6121 MB / 286.4 MB, free: 3.461 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.03117, allocations: 8 kB / 286.4 MB, free: 3.453 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.03118, allocations: 0 / 286.4 MB, free: 3.453 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009326/0.03211, allocations: 302.6 kB / 286.7 MB, free: 3.156 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003394/0.03245, allocations: 71.89 kB / 286.8 MB, free: 3.086 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004996/0.03745, allocations: 2.782 MB / 289.5 MB, free: 208 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003902/0.03784, allocations: 27.97 kB / 289.6 MB, free: 180 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.832e-05/0.03789, allocations: 24.05 kB / 289.6 MB, free: 156 kB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 32 * 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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.1242/0.1621, allocations: 155.8 kB / 289.7 MB, free: 28.33 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000171/0.1622, allocations: 48.45 kB / 289.8 MB, free: 28.33 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001282/0.1624, allocations: 49.05 kB / 289.8 MB, free: 28.32 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.1624, allocations: 5.688 kB / 289.8 MB, free: 28.32 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.1624, allocations: 3.75 kB / 289.8 MB, free: 28.32 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.1624, allocations: 2.531 kB / 289.8 MB, free: 28.32 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002313/0.1647, allocations: 1.127 MB / 291 MB, free: 28.08 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.1647, allocations: 0.75 kB / 291 MB, free: 28.08 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003589/0.165, allocations: 71.25 kB / 291 MB, free: 28.08 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007828/0.1658, allocations: 289.1 kB / 291.3 MB, free: 28.07 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.425e-05/0.1659, allocations: 16.55 kB / 291.3 MB, free: 28.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0034/0.1693, allocations: 2.706 MB / 294 MB, free: 26.22 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.1693, allocations: 0.75 kB / 294 MB, free: 26.22 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001873/0.1712, allocations: 0.9532 MB / 295 MB, free: 25.78 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001836/0.1713, allocations: 87.25 kB / 295.1 MB, free: 25.74 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.472e-05/0.1714, allocations: 11.19 kB / 295.1 MB, free: 25.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000341/0.1717, allocations: 33.12 kB / 295.1 MB, free: 25.73 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001999/0.1719, allocations: 72.53 kB / 295.2 MB, free: 25.71 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.35e-05/0.172, allocations: 19.41 kB / 295.2 MB, free: 25.71 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000223/0.1722, allocations: 187 kB / 295.4 MB, free: 25.61 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1722, allocations: 3.828 kB / 295.4 MB, free: 25.61 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006661/0.1729, allocations: 154.1 kB / 295.6 MB, free: 25.58 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (31): * Single equations (assignments): 30 * 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.001698/0.1746, allocations: 411.7 kB / 296 MB, free: 25.48 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001474/0.176, allocations: 0.6689 MB / 296.6 MB, free: 25.16 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.176, allocations: 0 / 296.6 MB, free: 25.16 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008107/0.1769, allocations: 466.1 kB / 297.1 MB, free: 24.91 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004906/0.1773, allocations: 76.19 kB / 297.2 MB, free: 24.88 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001475/0.1788, allocations: 0.7597 MB / 297.9 MB, free: 24.47 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001965/0.179, allocations: 191.3 kB / 298.1 MB, free: 24.38 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002375/0.1793, allocations: 80.31 kB / 298.2 MB, free: 24.36 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001351/0.1794, allocations: 48.44 kB / 298.2 MB, free: 24.35 MB / 266.7 MB Notification: Performance of SimCode: time 8.61e-07/0.1794, allocations: 0 / 298.2 MB, free: 24.35 MB / 266.7 MB Notification: Performance of Templates: time 0.01219/0.1916, allocations: 7.564 MB / 305.8 MB, free: 21.01 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.631770235020667]