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.001158/0.001158, allocations: 91.5 kB / 21.19 MB, free: 3.375 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.001224/0.001224, allocations: 156.5 kB / 24.55 MB, free: 20 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.002/1.002, allocations: 177 MB / 204.8 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.864e-06/1.864e-06, allocations: 0 / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.883e-05/2.069e-05, allocations: 6.312 kB / 272.9 MB, free: 1.465 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003268/0.003289, allocations: 2.969 MB / 275.9 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001471/0.00476, allocations: 1.033 MB / 276.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001454/0.004906, allocations: 7.938 kB / 276.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002804/0.005186, allocations: 75.3 kB / 277 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003339/0.00552, allocations: 174.7 kB / 277.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003114/0.005831, allocations: 191.7 kB / 277.3 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000476/0.006307, allocations: 0.6161 MB / 278 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001771/0.006485, allocations: 79.03 kB / 278 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003425/0.006827, allocations: 359.3 kB / 278.4 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002694/0.007096, allocations: 239.4 kB / 278.6 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.41e-05/0.007161, allocations: 48 kB / 278.7 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000152/0.007313, allocations: 107.8 kB / 278.8 MB, free: 11.56 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001321/0.007445, allocations: 135.5 kB / 278.9 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001324/0.007577, allocations: 167.6 kB / 279.1 MB, free: 11.26 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004774/0.008055, allocations: 470.4 kB / 279.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.008057, allocations: 0 / 279.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.008058, allocations: 0 / 279.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.254e-06/0.008065, allocations: 0 / 279.5 MB, free: 10.8 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.001012/0.009077, allocations: 0.7803 MB / 280.3 MB, free: 9.984 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.009119, allocations: 11.98 kB / 280.3 MB, free: 9.973 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001323/0.009251, allocations: 72.66 kB / 280.4 MB, free: 9.902 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003461/0.009597, allocations: 292 kB / 280.7 MB, free: 9.586 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.192e-05/0.009629, allocations: 21.38 kB / 280.7 MB, free: 9.566 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.185e-05/0.009691, allocations: 40.38 kB / 280.7 MB, free: 9.527 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005137/0.0102, allocations: 350.9 kB / 281.1 MB, free: 9.18 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.01022, allocations: 4.141 kB / 281.1 MB, free: 9.176 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.203e-05/0.01025, allocations: 20.31 kB / 281.1 MB, free: 9.156 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.01027, allocations: 11.94 kB / 281.1 MB, free: 9.145 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000431/0.0107, allocations: 261.7 kB / 281.4 MB, free: 8.887 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00148/0.01218, allocations: 1.035 MB / 282.4 MB, free: 7.805 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005335/0.01271, allocations: 285.6 kB / 282.7 MB, free: 7.508 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002076/0.01292, allocations: 145.1 kB / 282.8 MB, free: 7.359 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.237e-05/0.01296, allocations: 12.5 kB / 282.8 MB, free: 7.348 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.826e-05/0.01299, allocations: 45.88 kB / 282.9 MB, free: 7.293 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.844e-06/0.01299, allocations: 0 / 282.9 MB, free: 7.293 MB / 266.7 MB Notification: Performance of matching and sorting (n=54): time 0.002682/0.01567, allocations: 1.548 MB / 284.4 MB, free: 5.68 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.574e-05/0.01571, allocations: 55.91 kB / 284.5 MB, free: 5.609 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002196/0.01593, allocations: 304.3 kB / 284.8 MB, free: 5.297 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.816e-05/0.01597, allocations: 37.7 kB / 284.8 MB, free: 5.254 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.01608, allocations: 231.6 kB / 285 MB, free: 5.023 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001139/0.0162, allocations: 186.5 kB / 285.2 MB, free: 4.84 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001379/0.01633, allocations: 107.9 kB / 285.3 MB, free: 4.727 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.01649, allocations: 0.5157 MB / 285.9 MB, free: 4.199 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002202/0.01671, allocations: 129.2 kB / 286 MB, free: 4.074 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002411/0.01695, allocations: 217.1 kB / 286.2 MB, free: 3.836 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003665/0.01732, allocations: 288 kB / 286.5 MB, free: 3.531 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.01732, allocations: 0 / 286.5 MB, free: 3.531 MB / 266.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0008212/0.01814, allocations: 0.5314 MB / 287 MB, free: 2.977 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.01817, allocations: 14.75 kB / 287 MB, free: 2.965 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.01817, allocations: 4.125 kB / 287 MB, free: 2.961 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000654/0.01883, allocations: 342.7 kB / 287.4 MB, free: 2.613 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001522/0.01898, allocations: 67.91 kB / 287.4 MB, free: 2.547 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002188/0.02117, allocations: 4.459 MB / 291.9 MB, free: 13.81 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002037/0.02137, allocations: 51.94 kB / 291.9 MB, free: 13.76 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.714e-05/0.0214, allocations: 16 kB / 291.9 MB, free: 13.74 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.000139/0.02154, allocations: 193 kB / 292.1 MB, free: 13.54 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.487e-05/0.02161, allocations: 59.8 kB / 292.2 MB, free: 13.48 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007797/0.02239, allocations: 0.5433 MB / 292.7 MB, free: 12.92 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.0224, allocations: 8 kB / 292.7 MB, free: 12.91 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.0224, allocations: 0 / 292.7 MB, free: 12.91 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.0224, allocations: 3.984 kB / 292.7 MB, free: 12.91 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001198/0.0236, allocations: 0.9948 MB / 293.7 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.02361, allocations: 7.938 kB / 293.8 MB, free: 11.85 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001405/0.02375, allocations: 51.91 kB / 293.8 MB, free: 11.8 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005379/0.02429, allocations: 336.2 kB / 294.1 MB, free: 11.46 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.8e-05/0.02432, allocations: 19.97 kB / 294.2 MB, free: 11.44 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002096/0.02642, allocations: 4.452 MB / 298.6 MB, free: 6.715 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.02642, allocations: 0 / 298.6 MB, free: 6.715 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009431/0.02736, allocations: 0.7823 MB / 299.4 MB, free: 5.906 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/0.02749, allocations: 87.69 kB / 299.5 MB, free: 5.82 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.877e-05/0.02753, allocations: 19.94 kB / 299.5 MB, free: 5.801 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001821/0.02772, allocations: 47.94 kB / 299.5 MB, free: 5.754 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001562/0.02787, allocations: 108.2 kB / 299.6 MB, free: 5.645 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.573e-05/0.0279, allocations: 19.97 kB / 299.7 MB, free: 5.625 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000121/0.02802, allocations: 205.1 kB / 299.9 MB, free: 5.426 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02802, allocations: 4 kB / 299.9 MB, free: 5.422 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003329/0.02835, allocations: 120 kB / 300 MB, free: 5.305 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.000816/0.02917, allocations: 362.5 kB / 300.3 MB, free: 5.039 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008462/0.03002, allocations: 0.7395 MB / 301.1 MB, free: 4.262 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.03002, allocations: 0 / 301.1 MB, free: 4.262 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004879/0.0305, allocations: 0.5797 MB / 301.7 MB, free: 3.645 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003716/0.03088, allocations: 114.9 kB / 301.8 MB, free: 3.539 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001496/0.03237, allocations: 0.8809 MB / 302.7 MB, free: 2.625 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.498e-05/0.03245, allocations: 110.3 kB / 302.8 MB, free: 2.492 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.749e-05/0.03253, allocations: 35.28 kB / 302.8 MB, free: 2.457 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.173e-05/0.03262, allocations: 40.48 kB / 302.8 MB, free: 2.418 MB / 282.7 MB Notification: Performance of SimCode: time 7.41e-07/0.03262, allocations: 0 / 302.8 MB, free: 2.418 MB / 282.7 MB Notification: Performance of Templates: time 0.1182/0.1509, allocations: 8.823 MB / 311.7 MB, free: 38.61 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.197535506915301]