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.001413/0.001413, allocations: 96.25 kB / 20.96 MB, free: 3.469 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.001561/0.001561, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 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 1.574/1.574, allocations: 177 MB / 204.4 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 178] 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 2.124e-06/2.124e-06, allocations: 0 / 272.2 MB, free: 1.844 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.133e-05/3.345e-05, allocations: 2.312 kB / 272.2 MB, free: 1.84 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.005113/0.005146, allocations: 2.775 MB / 275 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002166/0.007312, allocations: 1.013 MB / 276 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000177/0.007489, allocations: 11.94 kB / 276 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003343/0.007823, allocations: 79.3 kB / 276.1 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00044/0.008263, allocations: 158.8 kB / 276.2 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004436/0.008707, allocations: 203.5 kB / 276.4 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000749/0.009456, allocations: 0.6123 MB / 277 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002083/0.009664, allocations: 79.02 kB / 277.1 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005179/0.01018, allocations: 363.3 kB / 277.5 MB, free: 12.53 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003934/0.01058, allocations: 239.4 kB / 277.7 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.723e-05/0.01067, allocations: 48 kB / 277.7 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002097/0.01088, allocations: 95.92 kB / 277.8 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002212/0.0111, allocations: 135.5 kB / 278 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002251/0.01133, allocations: 171.6 kB / 278.1 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008488/0.01218, allocations: 0.623 MB / 278.8 MB, free: 11.23 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.01218, allocations: 8 kB / 278.8 MB, free: 11.22 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.01218, allocations: 0 / 278.8 MB, free: 11.22 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.663e-06/0.01219, allocations: 0 / 278.8 MB, free: 11.22 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.001563/0.01375, allocations: 0.6999 MB / 279.5 MB, free: 10.49 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.099e-05/0.01378, allocations: 15.98 kB / 279.5 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001809/0.01397, allocations: 72.66 kB / 279.6 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005212/0.01449, allocations: 272.5 kB / 279.8 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.811e-05/0.01452, allocations: 25.38 kB / 279.8 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.725e-05/0.01462, allocations: 40.31 kB / 279.9 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001008/0.01563, allocations: 442.9 kB / 280.3 MB, free: 9.617 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.483e-05/0.01566, allocations: 8.141 kB / 280.3 MB, free: 9.609 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.386e-05/0.01571, allocations: 12.38 kB / 280.3 MB, free: 9.598 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.859e-05/0.01573, allocations: 11.94 kB / 280.4 MB, free: 9.586 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001182/0.01691, allocations: 443.7 kB / 280.8 MB, free: 9.148 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003131/0.02004, allocations: 1.078 MB / 281.9 MB, free: 8.023 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001025/0.02107, allocations: 377.1 kB / 282.2 MB, free: 7.641 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005472/0.02161, allocations: 226.1 kB / 282.5 MB, free: 7.418 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.499e-05/0.02167, allocations: 12.5 kB / 282.5 MB, free: 7.406 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.124e-05/0.02171, allocations: 39.06 kB / 282.5 MB, free: 7.359 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.365e-06/0.02171, allocations: 0 / 282.5 MB, free: 7.359 MB / 266.7 MB Notification: Performance of matching and sorting (n=54): time 0.006192/0.0279, allocations: 1.969 MB / 284.5 MB, free: 5.336 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.345e-05/0.02797, allocations: 59.91 kB / 284.5 MB, free: 5.266 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003776/0.02834, allocations: 265.8 kB / 284.8 MB, free: 4.996 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.974e-05/0.02841, allocations: 45.7 kB / 284.8 MB, free: 4.945 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001623/0.02858, allocations: 168.9 kB / 285 MB, free: 4.777 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002342/0.02881, allocations: 202.3 kB / 285.2 MB, free: 4.578 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002105/0.02902, allocations: 94.33 kB / 285.3 MB, free: 4.48 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002217/0.02924, allocations: 346.8 kB / 285.6 MB, free: 4.133 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005662/0.02981, allocations: 229.1 kB / 285.8 MB, free: 3.91 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006252/0.03043, allocations: 296.1 kB / 286.1 MB, free: 3.602 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009555/0.03139, allocations: 387 kB / 286.5 MB, free: 3.207 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.03139, allocations: 4 kB / 286.5 MB, free: 3.203 MB / 266.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001886/0.03328, allocations: 0.7338 MB / 287.3 MB, free: 2.453 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.434e-05/0.0333, allocations: 11.94 kB / 287.3 MB, free: 2.441 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.03331, allocations: 0 / 287.3 MB, free: 2.441 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00126/0.03457, allocations: 426.5 kB / 287.7 MB, free: 2.016 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003248/0.0349, allocations: 75.83 kB / 287.8 MB, free: 1.941 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1192/0.1541, allocations: 3.393 MB / 291.2 MB, free: 26.69 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005883/0.1547, allocations: 72.34 kB / 291.2 MB, free: 26.69 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-05/0.1548, allocations: 23.22 kB / 291.2 MB, free: 26.69 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.0002182/0.155, allocations: 168.9 kB / 291.4 MB, free: 26.57 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/0.1551, allocations: 57.81 kB / 291.5 MB, free: 26.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001648/0.1568, allocations: 0.7053 MB / 292.2 MB, free: 26.5 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.1568, allocations: 6.891 kB / 292.2 MB, free: 26.5 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1568, allocations: 1.094 kB / 292.2 MB, free: 26.5 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.1568, allocations: 7.781 kB / 292.2 MB, free: 26.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002117/0.1589, allocations: 1.112 MB / 293.3 MB, free: 25.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.1589, allocations: 0 / 293.3 MB, free: 25.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002804/0.1592, allocations: 58.17 kB / 293.4 MB, free: 25.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009799/0.1602, allocations: 407.3 kB / 293.8 MB, free: 25.86 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.92e-05/0.1602, allocations: 21.98 kB / 293.8 MB, free: 25.85 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002081/0.1623, allocations: 3.377 MB / 297.2 MB, free: 22.74 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1623, allocations: 4 kB / 297.2 MB, free: 22.74 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001983/0.1643, allocations: 1.032 MB / 298.2 MB, free: 22.25 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002164/0.1645, allocations: 85.12 kB / 298.3 MB, free: 22.23 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.192e-05/0.1646, allocations: 19.3 kB / 298.3 MB, free: 22.22 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004875/0.1651, allocations: 73.06 kB / 298.4 MB, free: 22.21 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002348/0.1653, allocations: 94.7 kB / 298.5 MB, free: 22.19 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.771e-05/0.1654, allocations: 24.31 kB / 298.5 MB, free: 22.18 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001825/0.1655, allocations: 183.9 kB / 298.7 MB, free: 22.08 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1655, allocations: 0 / 298.7 MB, free: 22.08 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005101/0.1661, allocations: 134.7 kB / 298.8 MB, free: 22.06 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.001671/0.1677, allocations: 400.1 kB / 299.2 MB, free: 21.95 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001484/0.1692, allocations: 0.7533 MB / 299.9 MB, free: 21.55 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1692, allocations: 0 / 299.9 MB, free: 21.55 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008278/0.17, allocations: 0.5158 MB / 300.4 MB, free: 21.23 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005924/0.1706, allocations: 112.3 kB / 300.6 MB, free: 21.2 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001759/0.1724, allocations: 0.9265 MB / 301.5 MB, free: 20.69 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001896/0.1726, allocations: 204.9 kB / 301.7 MB, free: 20.59 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000136/0.1727, allocations: 34.59 kB / 301.7 MB, free: 20.59 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/0.1728, allocations: 37.55 kB / 301.8 MB, free: 20.57 MB / 266.7 MB Notification: Performance of SimCode: time 7.92e-07/0.1728, allocations: 0 / 301.8 MB, free: 20.57 MB / 266.7 MB Notification: Performance of Templates: time 0.01271/0.1855, allocations: 8.797 MB / 310.6 MB, free: 15.57 MB / 266.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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.729525727918372]