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.0011/0.0011, allocations: 85.91 kB / 22.21 MB, free: 2.285 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.001068/0.001068, allocations: 158.9 kB / 25.61 MB, free: 8.582 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.9314/0.9314, allocations: 177 MB / 205.9 MB, free: 4.461 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 8.91e-07/8.91e-07, allocations: 0 / 274.1 MB, free: 4.305 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.688e-06/1.058e-05, allocations: 2.312 kB / 274.1 MB, free: 4.301 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002732/0.002742, allocations: 2.93 MB / 277 MB, free: 1.363 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.003949, allocations: 1.026 MB / 278.1 MB, free: 348 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001271/0.004076, allocations: 4 kB / 278.1 MB, free: 344 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000236/0.004312, allocations: 87.17 kB / 278.2 MB, free: 256 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002753/0.004588, allocations: 166.8 kB / 278.3 MB, free: 88 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000269/0.004857, allocations: 191.6 kB / 278.5 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004122/0.005269, allocations: 0.6162 MB / 279.1 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.00541, allocations: 75.03 kB / 279.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003161/0.005726, allocations: 375.3 kB / 279.6 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002419/0.005968, allocations: 243.4 kB / 279.8 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.515e-05/0.006023, allocations: 44 kB / 279.8 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001248/0.006148, allocations: 107.9 kB / 279.9 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001145/0.006262, allocations: 127.6 kB / 280.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001165/0.006379, allocations: 167.6 kB / 280.2 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003896/0.006768, allocations: 466.4 kB / 280.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.803e-06/0.00677, allocations: 0 / 280.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.61e-07/0.006771, allocations: 0 / 280.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.006775, allocations: 0 / 280.7 MB, free: 13.7 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.0008447/0.00762, allocations: 0.7842 MB / 281.5 MB, free: 12.88 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.052e-05/0.007651, allocations: 8.031 kB / 281.5 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000108/0.007759, allocations: 76.66 kB / 281.6 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002971/0.008056, allocations: 288 kB / 281.8 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.011e-05/0.008086, allocations: 29.38 kB / 281.9 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.373e-05/0.008139, allocations: 36.38 kB / 281.9 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003777/0.008517, allocations: 310.8 kB / 282.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.008534, allocations: 8.141 kB / 282.2 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.689e-05/0.00856, allocations: 8.375 kB / 282.2 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.008571, allocations: 11.94 kB / 282.2 MB, free: 12.09 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002892/0.00886, allocations: 222.8 kB / 282.4 MB, free: 11.87 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001228/0.01009, allocations: 0.996 MB / 283.4 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004062/0.01049, allocations: 249.6 kB / 283.7 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001503/0.01064, allocations: 125.1 kB / 283.8 MB, free: 10.44 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.281e-05/0.01068, allocations: 12.44 kB / 283.8 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.182e-05/0.0107, allocations: 41.89 kB / 283.9 MB, free: 10.38 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.563e-06/0.0107, allocations: 3.938 kB / 283.9 MB, free: 10.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=54): time 0.00225/0.01295, allocations: 1.361 MB / 285.2 MB, free: 8.949 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.857e-05/0.01298, allocations: 55.91 kB / 285.3 MB, free: 8.883 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001759/0.01316, allocations: 292.2 kB / 285.6 MB, free: 8.578 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.26e-05/0.0132, allocations: 49.69 kB / 285.6 MB, free: 8.523 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.01331, allocations: 219.6 kB / 285.8 MB, free: 8.305 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001223/0.01343, allocations: 190.4 kB / 286 MB, free: 8.117 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001251/0.01355, allocations: 107.9 kB / 286.1 MB, free: 8.004 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.01369, allocations: 0.5234 MB / 286.6 MB, free: 7.469 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001449/0.01384, allocations: 101.2 kB / 286.7 MB, free: 7.371 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001691/0.01401, allocations: 189 kB / 286.9 MB, free: 7.164 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002589/0.01427, allocations: 248 kB / 287.2 MB, free: 6.898 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.01427, allocations: 0 / 287.2 MB, free: 6.898 MB / 266.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0006262/0.01489, allocations: 492.2 kB / 287.7 MB, free: 6.398 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.01491, allocations: 11.98 kB / 287.7 MB, free: 6.387 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.962e-06/0.01491, allocations: 3.938 kB / 287.7 MB, free: 6.383 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005525/0.01547, allocations: 334.8 kB / 288 MB, free: 6.043 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001449/0.01561, allocations: 67.84 kB / 288.1 MB, free: 5.977 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001948/0.01756, allocations: 4.391 MB / 292.5 MB, free: 1.328 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002042/0.01776, allocations: 51.94 kB / 292.5 MB, free: 1.277 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.778e-05/0.01779, allocations: 15.98 kB / 292.5 MB, free: 1.262 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.0001411/0.01793, allocations: 185.2 kB / 292.7 MB, free: 1.07 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.446e-05/0.01802, allocations: 59.7 kB / 292.8 MB, free: 1.012 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000633/0.01865, allocations: 0.4886 MB / 293.2 MB, free: 0.5 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.297e-06/0.01865, allocations: 12 kB / 293.3 MB, free: 500 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.01866, allocations: 0 / 293.3 MB, free: 500 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/0.01866, allocations: 3.938 kB / 293.3 MB, free: 496 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001005/0.01966, allocations: 0.8941 MB / 294.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/0.01967, allocations: 0 / 294.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001408/0.01981, allocations: 51.91 kB / 294.2 MB, free: 15.49 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004842/0.02029, allocations: 336.2 kB / 294.5 MB, free: 15.15 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.059e-05/0.02032, allocations: 15.98 kB / 294.5 MB, free: 15.14 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001766/0.02209, allocations: 4.399 MB / 298.9 MB, free: 10.48 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.02209, allocations: 0 / 298.9 MB, free: 10.48 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007493/0.02284, allocations: 0.7003 MB / 299.6 MB, free: 9.746 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001163/0.02296, allocations: 87.67 kB / 299.7 MB, free: 9.66 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.128e-05/0.02301, allocations: 20.05 kB / 299.8 MB, free: 9.641 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001872/0.02319, allocations: 47.92 kB / 299.8 MB, free: 9.594 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/0.02333, allocations: 108.3 kB / 299.9 MB, free: 9.488 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.598e-05/0.02336, allocations: 15.98 kB / 299.9 MB, free: 9.473 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.827e-05/0.02345, allocations: 197.1 kB / 300.1 MB, free: 9.277 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02345, allocations: 0 / 300.1 MB, free: 9.277 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000303/0.02375, allocations: 120 kB / 300.2 MB, free: 9.16 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.0006819/0.02443, allocations: 372.3 kB / 300.6 MB, free: 8.898 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006488/0.02508, allocations: 0.677 MB / 301.3 MB, free: 8.184 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.02508, allocations: 0 / 301.3 MB, free: 8.184 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004051/0.02549, allocations: 0.5563 MB / 301.8 MB, free: 7.594 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000342/0.02583, allocations: 120.7 kB / 301.9 MB, free: 7.484 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001245/0.02707, allocations: 0.8493 MB / 302.8 MB, free: 6.598 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.796e-05/0.02714, allocations: 118.3 kB / 302.9 MB, free: 6.461 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.677e-05/0.02724, allocations: 31.28 kB / 302.9 MB, free: 6.43 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001543/0.02739, allocations: 142.2 kB / 303.1 MB, free: 6.289 MB / 282.7 MB Notification: Performance of SimCode: time 8.12e-07/0.02739, allocations: 0 / 303.1 MB, free: 6.289 MB / 282.7 MB Notification: Performance of Templates: time 0.01062/0.03801, allocations: 9.771 MB / 312.9 MB, free: 12.61 MB / 298.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.972726363223046]