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.001893/0.001893, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 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.002179/0.002179, allocations: 215.8 kB / 23.73 MB, free: 4.156 MB / 14.72 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 1.464/1.464, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002117/0.002117, allocations: 47.92 kB / 378.2 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2481/0.2502, allocations: 53.36 MB / 431.6 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004535/0.2547, allocations: 2.783 MB / 434.3 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001898/0.2566, allocations: 1.017 MB / 435.4 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001451/0.2568, allocations: 4 kB / 435.4 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002866/0.2571, allocations: 75.31 kB / 435.4 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004186/0.2575, allocations: 162.9 kB / 435.6 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003846/0.2579, allocations: 195.7 kB / 435.8 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006468/0.2585, allocations: 0.6008 MB / 436.4 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001987/0.2587, allocations: 74.97 kB / 436.5 MB, free: 1.797 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003645/0.2591, allocations: 267.2 kB / 436.7 MB, free: 1.535 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003949/0.2595, allocations: 274.9 kB / 437 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.981e-05/0.2596, allocations: 48 kB / 437 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002117/0.2598, allocations: 99.97 kB / 437.1 MB, free: 1.121 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001762/0.2599, allocations: 127.6 kB / 437.3 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002254/0.2602, allocations: 199.1 kB / 437.5 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008075/0.261, allocations: 0.6014 MB / 438.1 MB, free: 208 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.261, allocations: 0 / 438.1 MB, free: 208 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.261, allocations: 0 / 438.1 MB, free: 208 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.837e-06/0.261, allocations: 0 / 438.1 MB, free: 208 kB / 334.1 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.001637/0.2626, allocations: 0.7039 MB / 438.8 MB, free: 15.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.2627, allocations: 8.031 kB / 438.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001368/0.2628, allocations: 48.66 kB / 438.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006332/0.2634, allocations: 268.8 kB / 439.1 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.759e-05/0.2635, allocations: 29.38 kB / 439.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.868e-05/0.2636, allocations: 36.38 kB / 439.1 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009088/0.2645, allocations: 446.5 kB / 439.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.3e-05/0.2645, allocations: 7.953 kB / 439.6 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.249e-05/0.2645, allocations: 19.98 kB / 439.6 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.2646, allocations: 8 kB / 439.6 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.2656, allocations: 439.7 kB / 440 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002435/0.268, allocations: 1.062 MB / 441.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009607/0.269, allocations: 369.6 kB / 441.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005022/0.2695, allocations: 234.1 kB / 441.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.784e-05/0.2695, allocations: 12.31 kB / 441.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.433e-05/0.2696, allocations: 39 kB / 441.7 MB, free: 12.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.744e-06/0.2696, allocations: 0 / 441.7 MB, free: 12.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005624/0.2752, allocations: 1.947 MB / 443.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.982e-05/0.2752, allocations: 55.84 kB / 443.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00036/0.2756, allocations: 269.8 kB / 444 MB, free: 10.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.469e-05/0.2757, allocations: 45.7 kB / 444.1 MB, free: 9.984 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001567/0.2758, allocations: 172.9 kB / 444.2 MB, free: 9.809 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001797/0.276, allocations: 198.4 kB / 444.4 MB, free: 9.613 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000186/0.2762, allocations: 94.33 kB / 444.5 MB, free: 9.516 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.2764, allocations: 346.8 kB / 444.8 MB, free: 9.168 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005053/0.2769, allocations: 217.2 kB / 445.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005626/0.2774, allocations: 296 kB / 445.4 MB, free: 8.652 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000884/0.2783, allocations: 398.8 kB / 445.7 MB, free: 8.242 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2783, allocations: 0 / 445.7 MB, free: 8.242 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001768/0.2801, allocations: 0.726 MB / 446.5 MB, free: 7.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.2801, allocations: 8 kB / 446.5 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.2801, allocations: 0 / 446.5 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001102/0.2812, allocations: 422.4 kB / 446.9 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002868/0.2815, allocations: 67.91 kB / 447 MB, free: 7.004 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003597/0.2851, allocations: 3.398 MB / 450.4 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005533/0.2857, allocations: 83.92 kB / 450.4 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.633e-05/0.2857, allocations: 16 kB / 450.4 MB, free: 3.277 MB / 350.1 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.0002829/0.286, allocations: 170.3 kB / 450.6 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.775e-05/0.2861, allocations: 39.77 kB / 450.7 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001756/0.2878, allocations: 0.6952 MB / 451.3 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-05/0.2879, allocations: 8 kB / 451.4 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2879, allocations: 4 kB / 451.4 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.487e-05/0.2879, allocations: 11.92 kB / 451.4 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002405/0.2903, allocations: 1.12 MB / 452.5 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.2903, allocations: 0 / 452.5 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000289/0.2906, allocations: 55.91 kB / 452.5 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009862/0.2916, allocations: 406 kB / 452.9 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.101e-05/0.2916, allocations: 23.97 kB / 453 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003544/0.2951, allocations: 3.361 MB / 456.3 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.2952, allocations: 7.875 kB / 456.3 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002077/0.2972, allocations: 1.008 MB / 457.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002413/0.2975, allocations: 91.66 kB / 457.4 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.032e-05/0.2976, allocations: 16 kB / 457.4 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004692/0.298, allocations: 67.91 kB / 457.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002552/0.2983, allocations: 100.3 kB / 457.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.453e-05/0.2983, allocations: 23.98 kB / 457.6 MB, free: 11.76 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002223/0.2985, allocations: 189.2 kB / 457.8 MB, free: 11.58 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2985, allocations: 0 / 457.8 MB, free: 11.58 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005396/0.2991, allocations: 116 kB / 457.9 MB, free: 11.46 MB / 366.1 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.001592/0.3007, allocations: 419.9 kB / 458.3 MB, free: 11.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001741/0.3024, allocations: 0.7561 MB / 459.1 MB, free: 10.42 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3024, allocations: 4 kB / 459.1 MB, free: 10.42 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009463/0.3034, allocations: 0.5103 MB / 459.6 MB, free: 9.879 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005697/0.3039, allocations: 76.25 kB / 459.7 MB, free: 9.809 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002103/0.306, allocations: 1.024 MB / 460.7 MB, free: 8.754 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002339/0.3063, allocations: 208.2 kB / 460.9 MB, free: 8.523 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001416/0.3064, allocations: 35.28 kB / 461 MB, free: 8.492 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.3065, allocations: 35.42 kB / 461 MB, free: 8.457 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3065, allocations: 0 / 461 MB, free: 8.457 MB / 366.1 MB Notification: Performance of Templates: time 0.01642/0.3229, allocations: 9.14 MB / 470.1 MB, free: 15.4 MB / 382.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.81858460046351]