Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001255/0.001255, allocations: 81.91 kB / 21.42 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009886/0.0009886, allocations: 169.7 kB / 24.82 MB, free: 9.273 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9778/0.9778, allocations: 177 MB / 205.1 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.834e-06/1.834e-06, allocations: 0 / 273.3 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.069e-05/1.252e-05, allocations: 5.266 kB / 273.3 MB, free: 1.234 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003009/0.003022, allocations: 2.93 MB / 276.2 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001419/0.004441, allocations: 1.037 MB / 277.3 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001775/0.004619, allocations: 7.938 kB / 277.3 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002725/0.004891, allocations: 75.25 kB / 277.4 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003039/0.005195, allocations: 166.8 kB / 277.5 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003059/0.005501, allocations: 191.6 kB / 277.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006517/0.006153, allocations: 0.6123 MB / 278.3 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.006297, allocations: 79.03 kB / 278.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003104/0.006608, allocations: 371.2 kB / 278.8 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002337/0.006841, allocations: 239.4 kB / 279 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.831e-05/0.0069, allocations: 52 kB / 279 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001303/0.00703, allocations: 103.8 kB / 279.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001186/0.007149, allocations: 131.6 kB / 279.3 MB, free: 11.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001162/0.007265, allocations: 175.5 kB / 279.5 MB, free: 11.06 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003794/0.007644, allocations: 454.5 kB / 279.9 MB, free: 10.62 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.743e-06/0.007646, allocations: 0 / 279.9 MB, free: 10.62 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.82e-07/0.007647, allocations: 0 / 279.9 MB, free: 10.62 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.00765, allocations: 4 kB / 279.9 MB, free: 10.61 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.0007963/0.008447, allocations: 0.7841 MB / 280.7 MB, free: 9.793 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.008489, allocations: 15.98 kB / 280.7 MB, free: 9.777 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.472e-05/0.008584, allocations: 76.64 kB / 280.8 MB, free: 9.703 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002659/0.00885, allocations: 280 kB / 281 MB, free: 9.398 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.659e-05/0.008876, allocations: 33.38 kB / 281.1 MB, free: 9.367 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.175e-05/0.008928, allocations: 40.31 kB / 281.1 MB, free: 9.328 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003657/0.009294, allocations: 306.9 kB / 281.4 MB, free: 9.023 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.009307, allocations: 8.141 kB / 281.4 MB, free: 9.016 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.836e-05/0.009336, allocations: 20.36 kB / 281.4 MB, free: 8.996 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.866e-06/0.009345, allocations: 11.94 kB / 281.5 MB, free: 8.984 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000284/0.009629, allocations: 210.8 kB / 281.7 MB, free: 8.773 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001236/0.01086, allocations: 0.9959 MB / 282.7 MB, free: 7.738 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000372/0.01124, allocations: 257.6 kB / 282.9 MB, free: 7.469 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001401/0.01138, allocations: 121.1 kB / 283 MB, free: 7.344 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.378e-05/0.01141, allocations: 8.5 kB / 283 MB, free: 7.336 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.148e-05/0.01143, allocations: 45.88 kB / 283.1 MB, free: 7.281 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.533e-06/0.01143, allocations: 0 / 283.1 MB, free: 7.281 MB / 266.7 MB Notification: Performance of matching and sorting (n=54): time 0.002065/0.0135, allocations: 1.362 MB / 284.4 MB, free: 5.855 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.7e-05/0.01352, allocations: 59.91 kB / 284.5 MB, free: 5.781 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001594/0.01368, allocations: 292.2 kB / 284.8 MB, free: 5.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.32e-05/0.01373, allocations: 41.7 kB / 284.8 MB, free: 5.434 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003783/0.01411, allocations: 227.6 kB / 285.1 MB, free: 5.207 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.01421, allocations: 194.4 kB / 285.2 MB, free: 5.016 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.01432, allocations: 103.9 kB / 285.3 MB, free: 4.906 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.01445, allocations: 0.5234 MB / 285.9 MB, free: 4.371 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001803/0.01463, allocations: 101.2 kB / 286 MB, free: 4.273 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001691/0.0148, allocations: 189 kB / 286.1 MB, free: 4.062 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002434/0.01504, allocations: 252 kB / 286.4 MB, free: 3.793 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.01505, allocations: 3.938 kB / 286.4 MB, free: 3.789 MB / 266.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0005961/0.01564, allocations: 488.1 kB / 286.9 MB, free: 3.289 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.01566, allocations: 11.25 kB / 286.9 MB, free: 3.281 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.01566, allocations: 7.938 kB / 286.9 MB, free: 3.273 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005123/0.01618, allocations: 336.3 kB / 287.2 MB, free: 2.934 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.01631, allocations: 67.84 kB / 287.3 MB, free: 2.867 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001917/0.01823, allocations: 4.394 MB / 291.7 MB, free: 14.21 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001978/0.01842, allocations: 51.94 kB / 291.7 MB, free: 14.16 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.44e-05/0.01845, allocations: 12 kB / 291.7 MB, free: 14.15 MB / 282.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.000127/0.01858, allocations: 197.2 kB / 291.9 MB, free: 13.95 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.548e-05/0.01865, allocations: 55.7 kB / 292 MB, free: 13.89 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008849/0.01954, allocations: 0.4886 MB / 292.5 MB, free: 13.38 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.01954, allocations: 4 kB / 292.5 MB, free: 13.38 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.01954, allocations: 4 kB / 292.5 MB, free: 13.38 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.513e-06/0.01955, allocations: 11.98 kB / 292.5 MB, free: 13.36 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009506/0.0205, allocations: 0.8938 MB / 293.4 MB, free: 12.43 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.0205, allocations: 0 / 293.4 MB, free: 12.43 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001312/0.02063, allocations: 47.98 kB / 293.4 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004531/0.02109, allocations: 335.9 kB / 293.8 MB, free: 12.04 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.834e-05/0.02111, allocations: 23.97 kB / 293.8 MB, free: 12.02 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001711/0.02282, allocations: 4.383 MB / 298.2 MB, free: 7.375 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.02283, allocations: 4 kB / 298.2 MB, free: 7.371 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007325/0.02356, allocations: 0.708 MB / 298.9 MB, free: 6.633 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001154/0.02367, allocations: 83.66 kB / 299 MB, free: 6.551 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.657e-05/0.02372, allocations: 20 kB / 299 MB, free: 6.531 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001811/0.0239, allocations: 47.94 kB / 299 MB, free: 6.484 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/0.02403, allocations: 96.3 kB / 299.1 MB, free: 6.387 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.434e-05/0.02406, allocations: 19.98 kB / 299.1 MB, free: 6.367 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003806/0.02444, allocations: 209.1 kB / 299.4 MB, free: 6.164 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02444, allocations: 0 / 299.4 MB, free: 6.164 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002953/0.02473, allocations: 120 kB / 299.5 MB, free: 6.047 MB / 282.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.0006772/0.02541, allocations: 355.9 kB / 299.8 MB, free: 5.789 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000631/0.02604, allocations: 0.6887 MB / 300.5 MB, free: 5.062 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.182e-06/0.02604, allocations: 0 / 300.5 MB, free: 5.062 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003736/0.02641, allocations: 0.5448 MB / 301.1 MB, free: 4.48 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003332/0.02675, allocations: 124 kB / 301.2 MB, free: 4.359 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.02799, allocations: 0.8576 MB / 302 MB, free: 3.469 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.449e-05/0.02805, allocations: 118.3 kB / 302.1 MB, free: 3.328 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.054e-05/0.02813, allocations: 39.25 kB / 302.2 MB, free: 3.289 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001528/0.02829, allocations: 138.2 kB / 302.3 MB, free: 3.152 MB / 282.7 MB Notification: Performance of SimCode: time 8.12e-07/0.02829, allocations: 0 / 302.3 MB, free: 3.152 MB / 282.7 MB Notification: Performance of Templates: time 0.1062/0.1345, allocations: 9.543 MB / 311.9 MB, free: 38.16 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.9610079820267856]