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.001123/0.001123, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.001464/0.001464, allocations: 156.4 kB / 24.98 MB, free: 8.75 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.9417/0.9417, allocations: 177 MB / 205.2 MB, free: 5.59 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.533e-06/1.533e-06, allocations: 0 / 273 MB, free: 1.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.932e-05/2.085e-05, allocations: 9.266 kB / 273 MB, free: 1.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003107/0.003128, allocations: 2.953 MB / 275.9 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001485/0.004613, allocations: 1.025 MB / 277 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001635/0.004776, allocations: 7.938 kB / 277 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003134/0.00509, allocations: 87.16 kB / 277.1 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003147/0.005404, allocations: 162.8 kB / 277.2 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003324/0.005737, allocations: 195.6 kB / 277.4 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005605/0.006297, allocations: 0.6084 MB / 278 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001748/0.006472, allocations: 91.02 kB / 278.1 MB, free: 12.6 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003919/0.006864, allocations: 363.3 kB / 278.5 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002966/0.007161, allocations: 239.4 kB / 278.7 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.685e-05/0.007227, allocations: 48 kB / 278.7 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001475/0.007375, allocations: 103.8 kB / 278.8 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001378/0.007513, allocations: 131.6 kB / 279 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001287/0.007641, allocations: 167.6 kB / 279.1 MB, free: 11.57 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004938/0.008135, allocations: 462.5 kB / 279.6 MB, free: 11.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.008138, allocations: 0 / 279.6 MB, free: 11.12 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.008139, allocations: 3.938 kB / 279.6 MB, free: 11.11 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.233e-06/0.008146, allocations: 4 kB / 279.6 MB, free: 11.11 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.001099/0.009245, allocations: 0.7842 MB / 280.4 MB, free: 10.29 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.00928, allocations: 11.98 kB / 280.4 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.009401, allocations: 76.66 kB / 280.5 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003491/0.00975, allocations: 288 kB / 280.7 MB, free: 9.891 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.271e-05/0.009783, allocations: 29.38 kB / 280.8 MB, free: 9.863 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.594e-05/0.009839, allocations: 32.38 kB / 280.8 MB, free: 9.832 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004938/0.01033, allocations: 346.9 kB / 281.1 MB, free: 9.488 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.01035, allocations: 8.078 kB / 281.2 MB, free: 9.48 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.52e-05/0.01039, allocations: 20.36 kB / 281.2 MB, free: 9.461 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.27e-05/0.0104, allocations: 15.92 kB / 281.2 MB, free: 9.445 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004226/0.01082, allocations: 261.8 kB / 281.4 MB, free: 9.188 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001407/0.01223, allocations: 1.038 MB / 282.5 MB, free: 8.102 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000532/0.01276, allocations: 289.7 kB / 282.8 MB, free: 7.801 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002135/0.01297, allocations: 141.1 kB / 282.9 MB, free: 7.656 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.823e-05/0.01301, allocations: 8.5 kB / 282.9 MB, free: 7.648 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.365e-05/0.01304, allocations: 41.89 kB / 283 MB, free: 7.598 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.124e-06/0.01304, allocations: 0 / 283 MB, free: 7.598 MB / 266.7 MB Notification: Performance of matching and sorting (n=54): time 0.002899/0.01594, allocations: 1.545 MB / 284.5 MB, free: 5.988 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.016e-05/0.01597, allocations: 59.91 kB / 284.6 MB, free: 5.914 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002097/0.01618, allocations: 296.3 kB / 284.8 MB, free: 5.609 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.778e-05/0.01621, allocations: 41.7 kB / 284.9 MB, free: 5.562 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.428e-05/0.01631, allocations: 227.6 kB / 285.1 MB, free: 5.336 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.01642, allocations: 186.5 kB / 285.3 MB, free: 5.152 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001235/0.01654, allocations: 107.9 kB / 285.4 MB, free: 5.039 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.01667, allocations: 0.5195 MB / 285.9 MB, free: 4.508 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002344/0.01691, allocations: 125.2 kB / 286 MB, free: 4.387 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002502/0.01716, allocations: 225.1 kB / 286.3 MB, free: 4.141 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003559/0.01751, allocations: 288 kB / 286.5 MB, free: 3.836 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.01751, allocations: 0 / 286.5 MB, free: 3.836 MB / 266.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0008141/0.01833, allocations: 0.5392 MB / 287.1 MB, free: 3.273 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.01835, allocations: 11.94 kB / 287.1 MB, free: 3.262 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.01835, allocations: 0 / 287.1 MB, free: 3.262 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006278/0.01898, allocations: 346.7 kB / 287.4 MB, free: 2.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001451/0.01912, allocations: 63.91 kB / 287.5 MB, free: 2.848 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002383/0.02151, allocations: 4.463 MB / 292 MB, free: 14.1 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002225/0.02173, allocations: 51.94 kB / 292 MB, free: 14.05 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.793e-05/0.02176, allocations: 19.98 kB / 292 MB, free: 14.03 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.0001569/0.02192, allocations: 193.2 kB / 292.2 MB, free: 13.83 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.205e-05/0.022, allocations: 55.77 kB / 292.3 MB, free: 13.78 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008109/0.02281, allocations: 0.5472 MB / 292.8 MB, free: 13.21 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.02281, allocations: 4 kB / 292.8 MB, free: 13.21 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.02281, allocations: 0 / 292.8 MB, free: 13.21 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.02282, allocations: 3.938 kB / 292.8 MB, free: 13.2 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001205/0.02402, allocations: 0.9792 MB / 293.8 MB, free: 12.17 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.02403, allocations: 3.938 kB / 293.8 MB, free: 12.17 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001527/0.02418, allocations: 51.91 kB / 293.9 MB, free: 12.12 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005491/0.02473, allocations: 344.2 kB / 294.2 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.379e-05/0.02476, allocations: 19.97 kB / 294.2 MB, free: 11.75 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00216/0.02692, allocations: 4.46 MB / 298.7 MB, free: 7.016 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.02693, allocations: 7.969 kB / 298.7 MB, free: 7.008 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009715/0.0279, allocations: 0.7705 MB / 299.5 MB, free: 6.211 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001294/0.02803, allocations: 87.61 kB / 299.5 MB, free: 6.125 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.509e-05/0.02808, allocations: 23.94 kB / 299.6 MB, free: 6.102 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001944/0.02828, allocations: 51.94 kB / 299.6 MB, free: 6.051 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001565/0.02843, allocations: 100.3 kB / 299.7 MB, free: 5.949 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.503e-05/0.02846, allocations: 19.98 kB / 299.7 MB, free: 5.93 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001205/0.02858, allocations: 209.1 kB / 299.9 MB, free: 5.727 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02858, allocations: 0 / 299.9 MB, free: 5.727 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003307/0.02891, allocations: 120 kB / 300.1 MB, free: 5.609 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.0007707/0.02968, allocations: 371.3 kB / 300.4 MB, free: 5.336 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008566/0.03054, allocations: 0.7356 MB / 301.1 MB, free: 4.562 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.03054, allocations: 0 / 301.1 MB, free: 4.562 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005993/0.03114, allocations: 0.5761 MB / 301.7 MB, free: 3.949 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005126/0.03165, allocations: 112.2 kB / 301.8 MB, free: 3.84 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001917/0.03357, allocations: 0.8725 MB / 302.7 MB, free: 2.938 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.296e-05/0.03366, allocations: 118.2 kB / 302.8 MB, free: 2.797 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001248/0.03379, allocations: 39.27 kB / 302.9 MB, free: 2.758 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.752e-05/0.03388, allocations: 36.48 kB / 302.9 MB, free: 2.723 MB / 282.7 MB Notification: Performance of SimCode: time 1.423e-06/0.03388, allocations: 4 kB / 302.9 MB, free: 2.719 MB / 282.7 MB Notification: Performance of Templates: time 0.1133/0.1472, allocations: 8.836 MB / 311.7 MB, free: 41.06 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: 3.0823901288677007]