Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 85.17 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 148.6 kB / 24.89 MB, free: 8.742 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9614/0.9614, allocations: 173.4 MB / 201.5 MB, free: 8.727 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.82e-07/9.82e-07, allocations: 0 / 268.5 MB, free: 5.992 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.172e-05/1.27e-05, allocations: 6.109 kB / 268.5 MB, free: 5.988 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.00244/0.002453, allocations: 2.465 MB / 271 MB, free: 3.504 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.00366, allocations: 0.9827 MB / 271.9 MB, free: 2.516 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.813e-05/0.003758, allocations: 7.938 kB / 272 MB, free: 2.508 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001645/0.003922, allocations: 43.58 kB / 272 MB, free: 2.465 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003435/0.004266, allocations: 151 kB / 272.1 MB, free: 2.316 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002239/0.00449, allocations: 191.6 kB / 272.3 MB, free: 2.129 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003271/0.004817, allocations: 482.3 kB / 272.8 MB, free: 1.656 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.004942, allocations: 63.03 kB / 272.9 MB, free: 1.59 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002734/0.005215, allocations: 287.4 kB / 273.1 MB, free: 1.309 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002046/0.00542, allocations: 211.5 kB / 273.4 MB, free: 1.102 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.077e-05/0.005461, allocations: 36 kB / 273.4 MB, free: 1.066 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001677/0.005628, allocations: 131.9 kB / 273.5 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.592e-05/0.005714, allocations: 111.6 kB / 273.6 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.851e-05/0.005803, allocations: 139.7 kB / 273.8 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003332/0.006136, allocations: 398.7 kB / 274.2 MB, free: 308 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.523e-06/0.006138, allocations: 0 / 274.2 MB, free: 308 kB / 250.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.006138, allocations: 0 / 274.2 MB, free: 308 kB / 250.7 MB Notification: Performance of Transformations before backend: time 3.636e-06/0.006142, allocations: 0 / 274.2 MB, free: 308 kB / 250.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.0006657/0.006808, allocations: 0.5661 MB / 274.7 MB, free: 15.71 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.658e-05/0.006834, allocations: 8.922 kB / 274.7 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002047/0.007039, allocations: 76.86 kB / 274.8 MB, free: 15.63 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002534/0.007292, allocations: 225.7 kB / 275 MB, free: 15.38 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.51e-05/0.007377, allocations: 144 kB / 275.2 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.976e-05/0.007417, allocations: 32.38 kB / 275.2 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003412/0.007758, allocations: 329.9 kB / 275.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.00777, allocations: 192 / 275.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.506e-05/0.007795, allocations: 16.12 kB / 275.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.007802, allocations: 8 kB / 275.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002387/0.008041, allocations: 191.2 kB / 275.7 MB, free: 14.63 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007767/0.008818, allocations: 0.5791 MB / 276.3 MB, free: 14.03 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002625/0.00908, allocations: 197.2 kB / 276.5 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.009189, allocations: 102.2 kB / 276.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.009214, allocations: 8.5 kB / 276.6 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.282e-05/0.009236, allocations: 47.05 kB / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 1.243e-06/0.009238, allocations: 3.938 kB / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.00188/0.01112, allocations: 1.279 MB / 277.9 MB, free: 12.33 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.243e-05/0.01115, allocations: 89.55 kB / 278 MB, free: 12.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001251/0.01128, allocations: 208.2 kB / 278.2 MB, free: 12.01 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.635e-05/0.0113, allocations: 33.7 kB / 278.3 MB, free: 11.97 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.762e-05/0.01135, allocations: 129.1 kB / 278.4 MB, free: 11.84 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.919e-05/0.01144, allocations: 190.3 kB / 278.6 MB, free: 11.65 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.624e-05/0.01153, allocations: 94.12 kB / 278.7 MB, free: 11.55 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.656e-05/0.01161, allocations: 338.7 kB / 279 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.557e-05/0.01171, allocations: 67.8 kB / 279.1 MB, free: 11.14 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00012/0.01183, allocations: 153.6 kB / 279.2 MB, free: 10.98 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001998/0.01203, allocations: 205.2 kB / 279.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.01203, allocations: 0 / 279.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0003276/0.01236, allocations: 306.8 kB / 279.7 MB, free: 10.46 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/0.01237, allocations: 6.812 kB / 279.7 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.586e-06/0.01237, allocations: 0 / 279.7 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003349/0.01271, allocations: 202.6 kB / 279.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001583/0.01286, allocations: 67.89 kB / 280 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001633/0.0145, allocations: 2.056 MB / 282 MB, free: 8.043 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001097/0.01461, allocations: 27.95 kB / 282.1 MB, free: 8.016 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.453e-05/0.01463, allocations: 11.98 kB / 282.1 MB, free: 8.004 MB / 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 9.924e-05/0.01473, allocations: 132.7 kB / 282.2 MB, free: 7.863 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.196e-05/0.01478, allocations: 39.97 kB / 282.2 MB, free: 7.824 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.12e-05/0.01482, allocations: 51.23 kB / 282.3 MB, free: 7.777 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.01483, allocations: 4 kB / 282.3 MB, free: 7.773 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.01483, allocations: 0 / 282.3 MB, free: 7.773 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.01483, allocations: 7.922 kB / 282.3 MB, free: 7.766 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007433/0.01558, allocations: 0.6598 MB / 283 MB, free: 7.074 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.01558, allocations: 4 kB / 283 MB, free: 7.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001653/0.01575, allocations: 63.89 kB / 283 MB, free: 7.008 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002878/0.01603, allocations: 196.6 kB / 283.2 MB, free: 6.812 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/0.01606, allocations: 15.98 kB / 283.2 MB, free: 6.797 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001603/0.01766, allocations: 2.013 MB / 285.3 MB, free: 4.703 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.01766, allocations: 3.938 kB / 285.3 MB, free: 4.699 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004749/0.01814, allocations: 0.5075 MB / 285.8 MB, free: 4.168 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.538e-05/0.01821, allocations: 43.78 kB / 285.8 MB, free: 4.125 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.958e-05/0.01824, allocations: 12 kB / 285.8 MB, free: 4.113 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.01836, allocations: 19.98 kB / 285.8 MB, free: 4.094 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.01846, allocations: 72.3 kB / 285.9 MB, free: 4.023 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.865e-05/0.01848, allocations: 11.98 kB / 285.9 MB, free: 4.012 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.743e-05/0.01854, allocations: 76.36 kB / 286 MB, free: 3.934 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01854, allocations: 0 / 286 MB, free: 3.934 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000335/0.01887, allocations: 155.9 kB / 286.1 MB, free: 3.781 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.0001384/0.01901, allocations: 128.3 kB / 286.3 MB, free: 3.648 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004708/0.01948, allocations: 473.5 kB / 286.7 MB, free: 3.168 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.01949, allocations: 0 / 286.7 MB, free: 3.168 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004115/0.0199, allocations: 378.1 kB / 287.1 MB, free: 2.777 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002044/0.0201, allocations: 65.92 kB / 287.2 MB, free: 2.719 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008506/0.02095, allocations: 0.6575 MB / 287.8 MB, free: 2.031 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.201e-05/0.02102, allocations: 118.3 kB / 287.9 MB, free: 1.898 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.1e-05/0.02112, allocations: 34.92 kB / 288 MB, free: 1.867 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001273/0.02124, allocations: 99.34 kB / 288.1 MB, free: 1.77 MB / 266.7 MB Notification: Performance of SimCode: time 5.21e-07/0.02124, allocations: 0 / 288.1 MB, free: 1.77 MB / 266.7 MB Notification: Performance of Templates: time 0.09346/0.1147, allocations: 7.639 MB / 295.7 MB, free: 27.96 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7139705950394273]