Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001281/0.001281, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.001324/0.001324, allocations: 143 kB / 24.89 MB, free: 9.207 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.916/0.916, allocations: 173.3 MB / 201.5 MB, free: 9.219 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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 268.5 MB, free: 6.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.376e-06/9.699e-06, allocations: 2.312 kB / 268.5 MB, free: 6.223 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00223/0.002239, allocations: 2.344 MB / 270.8 MB, free: 3.859 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001179/0.003419, allocations: 0.9205 MB / 271.7 MB, free: 2.934 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.614e-05/0.003515, allocations: 4 kB / 271.7 MB, free: 2.93 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001495/0.003664, allocations: 47.52 kB / 271.8 MB, free: 2.883 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003504/0.004015, allocations: 143.1 kB / 271.9 MB, free: 2.742 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002386/0.004253, allocations: 171.6 kB / 272.1 MB, free: 2.574 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002949/0.004548, allocations: 430.5 kB / 272.5 MB, free: 2.152 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.299e-05/0.004641, allocations: 42.89 kB / 272.5 MB, free: 2.109 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002035/0.004845, allocations: 255.5 kB / 272.8 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001904/0.005035, allocations: 183.6 kB / 273 MB, free: 1.68 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.328e-05/0.005078, allocations: 36 kB / 273 MB, free: 1.645 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001445/0.005223, allocations: 123.8 kB / 273.1 MB, free: 1.523 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.859e-05/0.005311, allocations: 99.7 kB / 273.2 MB, free: 1.426 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.615e-05/0.005398, allocations: 119.7 kB / 273.3 MB, free: 1.309 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003052/0.005703, allocations: 362.9 kB / 273.7 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.342e-06/0.005704, allocations: 0 / 273.7 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.005705, allocations: 4 kB / 273.7 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.247e-06/0.005708, allocations: 3.938 kB / 273.7 MB, free: 0.9453 MB / 250.7 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.0005783/0.006286, allocations: 0.5271 MB / 274.2 MB, free: 404 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.842e-05/0.006315, allocations: 8.922 kB / 274.2 MB, free: 396 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001737/0.006488, allocations: 68.81 kB / 274.3 MB, free: 328 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002258/0.006714, allocations: 222 kB / 274.5 MB, free: 76 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.109e-05/0.006805, allocations: 136.1 kB / 274.7 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.871e-05/0.006844, allocations: 36.28 kB / 274.7 MB, free: 15.88 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003055/0.007149, allocations: 303.8 kB / 275 MB, free: 15.56 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.007162, allocations: 4.141 kB / 275 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.088e-05/0.007183, allocations: 20.11 kB / 275 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.00719, allocations: 4 kB / 275 MB, free: 15.53 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002135/0.007403, allocations: 183.2 kB / 275.2 MB, free: 15.35 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009115/0.008315, allocations: 0.8084 MB / 276 MB, free: 14.51 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002159/0.00853, allocations: 177.5 kB / 276.2 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.084e-05/0.008621, allocations: 85.48 kB / 276.3 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.254e-05/0.008644, allocations: 8 kB / 276.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.936e-05/0.008663, allocations: 42.52 kB / 276.3 MB, free: 14.19 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.313e-06/0.008665, allocations: 0 / 276.3 MB, free: 14.19 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.001731/0.0104, allocations: 1.134 MB / 277.4 MB, free: 13 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.121e-05/0.01043, allocations: 88.8 kB / 277.5 MB, free: 12.89 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001255/0.01055, allocations: 212 kB / 277.7 MB, free: 12.67 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.754e-05/0.01058, allocations: 37.7 kB / 277.8 MB, free: 12.62 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.768e-05/0.01063, allocations: 124.8 kB / 277.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.212e-05/0.0107, allocations: 158.7 kB / 278.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.137e-05/0.01078, allocations: 78.14 kB / 278.1 MB, free: 12.26 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.465e-05/0.01086, allocations: 342.8 kB / 278.5 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.054e-05/0.01095, allocations: 59.8 kB / 278.5 MB, free: 11.85 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001124/0.01106, allocations: 156.2 kB / 278.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001834/0.01124, allocations: 205.7 kB / 278.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.01124, allocations: 4 kB / 278.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0003099/0.01155, allocations: 302.1 kB / 279.2 MB, free: 11.15 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/0.01156, allocations: 8 kB / 279.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.01157, allocations: 0 / 279.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003151/0.01188, allocations: 200.7 kB / 279.4 MB, free: 10.94 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.012, allocations: 47.91 kB / 279.4 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001539/0.01354, allocations: 2.022 MB / 281.4 MB, free: 8.777 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.921e-05/0.01364, allocations: 19.98 kB / 281.5 MB, free: 8.758 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.081e-05/0.01366, allocations: 8 kB / 281.5 MB, free: 8.75 MB / 266.7 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 9.243e-05/0.01375, allocations: 140.6 kB / 281.6 MB, free: 8.602 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.243e-05/0.0138, allocations: 31.98 kB / 281.6 MB, free: 8.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.968e-05/0.01384, allocations: 46.97 kB / 281.7 MB, free: 8.523 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.01384, allocations: 4 kB / 281.7 MB, free: 8.52 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.01384, allocations: 3.938 kB / 281.7 MB, free: 8.516 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.01385, allocations: 3.984 kB / 281.7 MB, free: 8.512 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006643/0.01451, allocations: 0.5633 MB / 282.3 MB, free: 7.922 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.01451, allocations: 0 / 282.3 MB, free: 7.922 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001092/0.01462, allocations: 39.97 kB / 282.3 MB, free: 7.883 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002894/0.01491, allocations: 192.9 kB / 282.5 MB, free: 7.691 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.941e-05/0.01493, allocations: 11.92 kB / 282.5 MB, free: 7.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001444/0.01637, allocations: 2.006 MB / 284.5 MB, free: 5.59 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.01637, allocations: 0 / 284.5 MB, free: 5.59 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004288/0.0168, allocations: 470.9 kB / 285 MB, free: 5.113 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.108e-05/0.01687, allocations: 39.8 kB / 285 MB, free: 5.074 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.882e-05/0.0169, allocations: 11.98 kB / 285 MB, free: 5.062 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.017, allocations: 12 kB / 285 MB, free: 5.051 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.0171, allocations: 67.86 kB / 285.1 MB, free: 4.984 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.01712, allocations: 4 kB / 285.1 MB, free: 4.98 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.941e-05/0.01718, allocations: 72.61 kB / 285.2 MB, free: 4.906 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01718, allocations: 4.031 kB / 285.2 MB, free: 4.902 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003455/0.01752, allocations: 139.9 kB / 285.3 MB, free: 4.766 MB / 266.7 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.0001445/0.01767, allocations: 128.3 kB / 285.4 MB, free: 4.633 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004593/0.01813, allocations: 449.9 kB / 285.9 MB, free: 4.18 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.01813, allocations: 0 / 285.9 MB, free: 4.18 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000266/0.0184, allocations: 338.4 kB / 286.2 MB, free: 3.832 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001901/0.01859, allocations: 63.8 kB / 286.3 MB, free: 3.77 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007652/0.01935, allocations: 0.567 MB / 286.8 MB, free: 3.172 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.951e-05/0.01942, allocations: 101.3 kB / 286.9 MB, free: 3.055 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.892e-05/0.0195, allocations: 38.98 kB / 287 MB, free: 3.02 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/0.0196, allocations: 87.34 kB / 287.1 MB, free: 2.934 MB / 266.7 MB Notification: Performance of SimCode: time 6.11e-07/0.0196, allocations: 0 / 287.1 MB, free: 2.934 MB / 266.7 MB Notification: Performance of Templates: time 0.09802/0.1176, allocations: 7.103 MB / 294.2 MB, free: 29.18 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.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.691254924982786]