Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009888/0.0009888, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009097/0.0009097, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9938/0.9938, allocations: 177.1 MB / 205 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 273 MB, free: 1.508 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.074e-05/2.228e-05, allocations: 2.312 kB / 273 MB, free: 1.504 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003372/0.003394, allocations: 2.953 MB / 275.9 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001435/0.004829, allocations: 1.041 MB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001616/0.00499, allocations: 7.938 kB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002656/0.005256, allocations: 79.23 kB / 277.1 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003299/0.005586, allocations: 166.8 kB / 277.2 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003215/0.005907, allocations: 195.6 kB / 277.4 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004717/0.006379, allocations: 0.6084 MB / 278 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00017/0.006549, allocations: 83.03 kB / 278.1 MB, free: 12.35 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000353/0.006902, allocations: 363.3 kB / 278.4 MB, free: 12 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002699/0.007172, allocations: 243.4 kB / 278.7 MB, free: 11.76 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.471e-05/0.007237, allocations: 48 kB / 278.7 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001508/0.007387, allocations: 99.86 kB / 278.8 MB, free: 11.61 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001289/0.007516, allocations: 139.6 kB / 279 MB, free: 11.48 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001351/0.007651, allocations: 167.6 kB / 279.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004535/0.008105, allocations: 466.4 kB / 279.6 MB, free: 10.86 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.008107, allocations: 0 / 279.6 MB, free: 10.86 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.32e-07/0.008108, allocations: 0 / 279.6 MB, free: 10.86 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.008113, allocations: 0 / 279.6 MB, free: 10.86 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.0009028/0.009016, allocations: 0.7804 MB / 280.4 MB, free: 10.04 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.009049, allocations: 8.031 kB / 280.4 MB, free: 10.03 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/0.009159, allocations: 76.64 kB / 280.4 MB, free: 9.957 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003106/0.00947, allocations: 284 kB / 280.7 MB, free: 9.645 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.923e-05/0.009499, allocations: 29.38 kB / 280.8 MB, free: 9.617 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.847e-05/0.009557, allocations: 40.31 kB / 280.8 MB, free: 9.578 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004855/0.01004, allocations: 350.9 kB / 281.1 MB, free: 9.23 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.01006, allocations: 4.141 kB / 281.1 MB, free: 9.227 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.125e-05/0.01009, allocations: 16.38 kB / 281.2 MB, free: 9.211 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.0101, allocations: 11.94 kB / 281.2 MB, free: 9.199 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004084/0.01051, allocations: 269.7 kB / 281.4 MB, free: 8.934 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001373/0.01188, allocations: 1.046 MB / 282.5 MB, free: 7.84 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004904/0.01237, allocations: 285.4 kB / 282.8 MB, free: 7.547 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002037/0.01257, allocations: 149 kB / 282.9 MB, free: 7.398 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.797e-05/0.01261, allocations: 8.5 kB / 282.9 MB, free: 7.391 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.176e-05/0.01263, allocations: 45.89 kB / 283 MB, free: 7.336 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.254e-06/0.01264, allocations: 3.938 kB / 283 MB, free: 7.332 MB / 266.7 MB Notification: Performance of matching and sorting (n=54): time 0.002656/0.01529, allocations: 1.529 MB / 284.5 MB, free: 5.734 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.418e-05/0.01533, allocations: 63.89 kB / 284.6 MB, free: 5.656 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002033/0.01553, allocations: 288.3 kB / 284.8 MB, free: 5.359 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.912e-05/0.01557, allocations: 41.7 kB / 284.9 MB, free: 5.312 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.01567, allocations: 231.6 kB / 285.1 MB, free: 5.082 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.01578, allocations: 190.5 kB / 285.3 MB, free: 4.895 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001224/0.0159, allocations: 107.9 kB / 285.4 MB, free: 4.781 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.01603, allocations: 0.5195 MB / 285.9 MB, free: 4.25 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002221/0.01626, allocations: 129.2 kB / 286 MB, free: 4.125 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002473/0.0165, allocations: 217.1 kB / 286.2 MB, free: 3.887 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003499/0.01685, allocations: 284 kB / 286.5 MB, free: 3.59 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.01685, allocations: 0 / 286.5 MB, free: 3.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0008206/0.01767, allocations: 0.5354 MB / 287.1 MB, free: 3.031 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/0.0177, allocations: 15.92 kB / 287.1 MB, free: 3.016 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.01771, allocations: 3.984 kB / 287.1 MB, free: 3.012 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000632/0.01834, allocations: 347.6 kB / 287.4 MB, free: 2.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.01849, allocations: 63.84 kB / 287.5 MB, free: 2.598 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002247/0.02074, allocations: 4.466 MB / 291.9 MB, free: 13.86 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002288/0.02096, allocations: 55.97 kB / 292 MB, free: 13.8 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.311e-05/0.021, allocations: 16 kB / 292 MB, free: 13.79 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.0001465/0.02114, allocations: 192.4 kB / 292.2 MB, free: 13.59 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.953e-05/0.02122, allocations: 55.77 kB / 292.3 MB, free: 13.53 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007997/0.02202, allocations: 0.5472 MB / 292.8 MB, free: 12.96 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.02203, allocations: 4 kB / 292.8 MB, free: 12.96 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.02203, allocations: 0 / 292.8 MB, free: 12.96 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.02203, allocations: 7.922 kB / 292.8 MB, free: 12.95 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001188/0.02322, allocations: 0.9833 MB / 293.8 MB, free: 11.91 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.02323, allocations: 3.938 kB / 293.8 MB, free: 11.91 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001391/0.02337, allocations: 51.91 kB / 293.9 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005206/0.02389, allocations: 342.7 kB / 294.2 MB, free: 11.51 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.699e-05/0.02392, allocations: 19.97 kB / 294.2 MB, free: 11.49 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002086/0.02601, allocations: 4.452 MB / 298.7 MB, free: 6.766 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.02601, allocations: 0 / 298.7 MB, free: 6.766 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.02703, allocations: 0.7822 MB / 299.4 MB, free: 5.957 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/0.02716, allocations: 83.69 kB / 299.5 MB, free: 5.875 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.659e-05/0.02721, allocations: 27.92 kB / 299.6 MB, free: 5.848 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001944/0.02741, allocations: 43.95 kB / 299.6 MB, free: 5.805 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001757/0.02758, allocations: 100.3 kB / 299.7 MB, free: 5.703 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.99e-05/0.02761, allocations: 23.97 kB / 299.7 MB, free: 5.68 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001236/0.02774, allocations: 205.1 kB / 299.9 MB, free: 5.477 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02774, allocations: 0 / 299.9 MB, free: 5.477 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003233/0.02806, allocations: 124 kB / 300 MB, free: 5.355 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.000784/0.02885, allocations: 364 kB / 300.4 MB, free: 5.109 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009607/0.02981, allocations: 0.7398 MB / 301.1 MB, free: 4.336 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.02981, allocations: 0 / 301.1 MB, free: 4.336 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005071/0.03031, allocations: 0.5757 MB / 301.7 MB, free: 3.723 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004015/0.03072, allocations: 119.3 kB / 301.8 MB, free: 3.609 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001609/0.03233, allocations: 0.892 MB / 302.7 MB, free: 2.688 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.242e-05/0.0324, allocations: 114.3 kB / 302.8 MB, free: 2.547 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.685e-05/0.03249, allocations: 27.3 kB / 302.9 MB, free: 2.52 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.028e-05/0.03257, allocations: 36.48 kB / 302.9 MB, free: 2.484 MB / 282.7 MB Notification: Performance of SimCode: time 6.31e-07/0.03258, allocations: 0 / 302.9 MB, free: 2.484 MB / 282.7 MB Notification: Performance of Templates: time 0.1148/0.1473, allocations: 8.834 MB / 311.7 MB, free: 38.63 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.064411277882755]