Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.0011/0.0011, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001526/0.002626, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.000731/0.000731, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009414/0.001672, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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 0.9541/0.9541, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1109/1.065, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] 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.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 0 / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.144e-05/2.276e-05, allocations: 10.25 kB / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.006966/0.006988, allocations: 2.984 MB / 247.5 MB, free: 11.32 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001697/0.008685, allocations: 1.075 MB / 248.6 MB, free: 10.23 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001524/0.008837, allocations: 7.938 kB / 248.6 MB, free: 10.23 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002211/0.009059, allocations: 75.25 kB / 248.7 MB, free: 10.15 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003337/0.0124, allocations: 174.7 kB / 248.8 MB, free: 9.98 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003665/0.01276, allocations: 187.6 kB / 249 MB, free: 9.797 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005357/0.0133, allocations: 0.6007 MB / 249.6 MB, free: 9.195 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001684/0.01347, allocations: 87.02 kB / 249.7 MB, free: 9.105 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004366/0.0139, allocations: 395.9 kB / 250.1 MB, free: 8.719 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002943/0.0142, allocations: 235.4 kB / 250.3 MB, free: 8.488 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.462e-05/0.01427, allocations: 48 kB / 250.4 MB, free: 8.441 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000178/0.01445, allocations: 111.8 kB / 250.5 MB, free: 8.332 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001332/0.01458, allocations: 91.73 kB / 250.6 MB, free: 8.242 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001517/0.01473, allocations: 127.8 kB / 250.7 MB, free: 8.117 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00351/0.01824, allocations: 398.7 kB / 251.1 MB, free: 7.727 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.93e-05/0.01826, allocations: 4 kB / 251.1 MB, free: 7.723 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.01826, allocations: 3.938 kB / 251.1 MB, free: 7.719 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.736e-05/0.01828, allocations: 3.984 kB / 251.1 MB, free: 7.715 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001272/0.01955, allocations: 0.745 MB / 251.8 MB, free: 6.945 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.108e-05/0.01959, allocations: 8.031 kB / 251.8 MB, free: 6.938 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.748e-05/0.01968, allocations: 60.89 kB / 251.9 MB, free: 6.879 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003292/0.02001, allocations: 241.2 kB / 252.1 MB, free: 6.609 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.327e-05/0.02005, allocations: 29.38 kB / 252.2 MB, free: 6.578 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.048e-05/0.02011, allocations: 36.38 kB / 252.2 MB, free: 6.543 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00347/0.02358, allocations: 314.9 kB / 252.5 MB, free: 6.23 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.965e-05/0.0236, allocations: 8.078 kB / 252.5 MB, free: 6.223 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.39e-05/0.02363, allocations: 16.38 kB / 252.5 MB, free: 6.207 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.214e-05/0.02364, allocations: 11.94 kB / 252.5 MB, free: 6.195 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003373/0.02398, allocations: 182.8 kB / 252.7 MB, free: 6.016 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001415/0.02539, allocations: 0.7653 MB / 253.5 MB, free: 5.227 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004429/0.02584, allocations: 232.8 kB / 253.7 MB, free: 4.988 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000162/0.026, allocations: 106.3 kB / 253.8 MB, free: 4.883 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.635e-05/0.02604, allocations: 12.5 kB / 253.8 MB, free: 4.871 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.02606, allocations: 43.05 kB / 253.9 MB, free: 4.82 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 2.495e-06/0.02607, allocations: 0 / 253.9 MB, free: 4.82 MB / 250.7 MB Notification: Performance of matching and sorting (n=54): time 0.0056/0.03167, allocations: 1.287 MB / 255.2 MB, free: 3.473 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.909e-05/0.03169, allocations: 59.84 kB / 255.2 MB, free: 3.402 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001866/0.03188, allocations: 250.6 kB / 255.5 MB, free: 3.145 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.055e-05/0.03192, allocations: 37.7 kB / 255.5 MB, free: 3.102 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.473e-05/0.032, allocations: 156.9 kB / 255.7 MB, free: 2.941 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001275/0.03212, allocations: 198.4 kB / 255.8 MB, free: 2.746 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001371/0.03226, allocations: 94.28 kB / 255.9 MB, free: 2.648 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.76e-05/0.03236, allocations: 342.8 kB / 256.3 MB, free: 2.305 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001635/0.03252, allocations: 89.27 kB / 256.4 MB, free: 2.215 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001842/0.03271, allocations: 160.1 kB / 256.5 MB, free: 2.043 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000292/0.033, allocations: 237.6 kB / 256.8 MB, free: 1.793 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.033, allocations: 4 kB / 256.8 MB, free: 1.789 MB / 250.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.00362/0.03662, allocations: 380.9 kB / 257.1 MB, free: 1.402 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.03664, allocations: 4 kB / 257.1 MB, free: 1.398 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.03664, allocations: 4 kB / 257.1 MB, free: 1.395 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006329/0.03728, allocations: 314.4 kB / 257.4 MB, free: 1.078 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002055/0.03748, allocations: 71.91 kB / 257.5 MB, free: 1.008 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004929/0.04241, allocations: 3.006 MB / 260.5 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002469/0.04266, allocations: 56.12 kB / 260.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.208e-05/0.04269, allocations: 16 kB / 260.6 MB, free: 13.73 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0001348/0.04283, allocations: 137.2 kB / 260.7 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.856e-05/0.0429, allocations: 43.89 kB / 260.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006554/0.04356, allocations: 416.9 kB / 261.2 MB, free: 13.12 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.04356, allocations: 4 kB / 261.2 MB, free: 13.12 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.04357, allocations: 4 kB / 261.2 MB, free: 13.11 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.04357, allocations: 7.922 kB / 261.2 MB, free: 13.11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001196/0.04477, allocations: 0.6648 MB / 261.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.04477, allocations: 7.984 kB / 261.9 MB, free: 12.4 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003209/0.04798, allocations: 63.91 kB / 261.9 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001263/0.04811, allocations: 51.78 kB / 262 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005303/0.04864, allocations: 302.3 kB / 262.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.328e-05/0.04867, allocations: 19.95 kB / 262.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001525/0.0502, allocations: 2.997 MB / 265.3 MB, free: 8.766 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.0502, allocations: 11.88 kB / 265.3 MB, free: 8.754 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005611/0.05076, allocations: 0.5614 MB / 265.9 MB, free: 8.164 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.604e-05/0.05081, allocations: 16 kB / 265.9 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001682/0.05097, allocations: 52.06 kB / 265.9 MB, free: 8.098 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001244/0.0511, allocations: 100.3 kB / 266 MB, free: 8 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.138e-05/0.05112, allocations: 15.98 kB / 266 MB, free: 7.984 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.006e-05/0.05118, allocations: 82.77 kB / 266.1 MB, free: 7.898 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.05118, allocations: 0 / 266.1 MB, free: 7.898 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002701/0.05145, allocations: 116 kB / 266.2 MB, free: 7.785 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009581/0.05241, allocations: 0.4921 MB / 266.7 MB, free: 7.516 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000546/0.05295, allocations: 0.5392 MB / 267.3 MB, free: 6.949 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.199e-05/0.05297, allocations: 11.94 kB / 267.3 MB, free: 6.938 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003085/0.05327, allocations: 440.3 kB / 267.7 MB, free: 6.48 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002873/0.05356, allocations: 144.5 kB / 267.8 MB, free: 6.34 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003357/0.05692, allocations: 0.8134 MB / 268.7 MB, free: 5.5 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.374e-05/0.05698, allocations: 114.3 kB / 268.8 MB, free: 5.371 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.651e-05/0.05707, allocations: 39.27 kB / 268.8 MB, free: 5.332 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001418/0.05721, allocations: 111.3 kB / 268.9 MB, free: 5.223 MB / 266.7 MB Notification: Performance of SimCode: time 6.71e-07/0.05721, allocations: 0 / 268.9 MB, free: 5.223 MB / 266.7 MB Notification: Performance of Templates: time 0.01094/0.06815, allocations: 9.59 MB / 278.5 MB, free: 11.72 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.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.807455469854176]