Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009757/0.0009757, allocations: 80.92 kB / 22.29 MB, free: 2.207 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.0009633/0.0009633, allocations: 168.1 kB / 25.7 MB, free: 8.434 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8855/0.8855, allocations: 158.6 MB / 187.6 MB, free: 2.781 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.012e-06/1.012e-06, allocations: 0 / 251.6 MB, free: 7.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.575e-05/1.676e-05, allocations: 6.25 kB / 251.6 MB, free: 7.242 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002807/0.002823, allocations: 2.854 MB / 254.4 MB, free: 4.367 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001343/0.004166, allocations: 0.9354 MB / 255.3 MB, free: 3.422 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.004288, allocations: 11.94 kB / 255.4 MB, free: 3.41 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001877/0.004475, allocations: 59.44 kB / 255.4 MB, free: 3.352 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001843/0.004659, allocations: 111 kB / 255.5 MB, free: 3.242 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003927/0.005052, allocations: 227.5 kB / 255.7 MB, free: 3.02 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000402/0.005454, allocations: 0.5771 MB / 256.3 MB, free: 2.441 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001324/0.005587, allocations: 75.03 kB / 256.4 MB, free: 2.367 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002703/0.005857, allocations: 351.3 kB / 256.7 MB, free: 2.023 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002129/0.00607, allocations: 227.5 kB / 257 MB, free: 1.801 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.677e-05/0.006116, allocations: 44 kB / 257 MB, free: 1.758 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001299/0.006246, allocations: 99.94 kB / 257.1 MB, free: 1.66 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.93e-05/0.006326, allocations: 119.6 kB / 257.2 MB, free: 1.539 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001004/0.006426, allocations: 155.6 kB / 257.4 MB, free: 1.387 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000326/0.006752, allocations: 434.6 kB / 257.8 MB, free: 0.9609 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.723e-06/0.006754, allocations: 4 kB / 257.8 MB, free: 0.957 MB / 234.7 MB Notification: Performance of FrontEnd: time 7.32e-07/0.006754, allocations: 0 / 257.8 MB, free: 0.957 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.877e-06/0.006758, allocations: 0 / 257.8 MB, free: 0.957 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.0006384/0.007397, allocations: 0.6168 MB / 258.4 MB, free: 320 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.742e-05/0.007424, allocations: 15.98 kB / 258.4 MB, free: 304 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.9e-05/0.007493, allocations: 60.83 kB / 258.5 MB, free: 244 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002192/0.007712, allocations: 212.6 kB / 258.7 MB, free: 4 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.403e-05/0.007746, allocations: 25.45 kB / 258.7 MB, free: 15.98 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.11e-05/0.007787, allocations: 36.38 kB / 258.8 MB, free: 15.94 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003355/0.008123, allocations: 323.6 kB / 259.1 MB, free: 15.62 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.008137, allocations: 8.078 kB / 259.1 MB, free: 15.61 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.317e-05/0.00816, allocations: 20.38 kB / 259.1 MB, free: 15.59 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.008169, allocations: 11.94 kB / 259.1 MB, free: 15.58 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002348/0.008404, allocations: 186.8 kB / 259.3 MB, free: 15.4 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009732/0.009377, allocations: 0.7623 MB / 260.1 MB, free: 14.61 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003052/0.009682, allocations: 208.2 kB / 260.3 MB, free: 14.39 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001143/0.009796, allocations: 112.4 kB / 260.4 MB, free: 14.29 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.658e-05/0.009823, allocations: 8.375 kB / 260.4 MB, free: 14.28 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.949e-05/0.009842, allocations: 34.94 kB / 260.4 MB, free: 14.23 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.503e-06/0.009844, allocations: 0 / 260.4 MB, free: 14.23 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.001895/0.01174, allocations: 1.273 MB / 261.7 MB, free: 12.9 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.194e-05/0.01176, allocations: 59.91 kB / 261.7 MB, free: 12.83 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001198/0.01188, allocations: 225 kB / 262 MB, free: 12.6 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.834e-05/0.01191, allocations: 37.7 kB / 262 MB, free: 12.55 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.735e-05/0.01197, allocations: 164.8 kB / 262.2 MB, free: 12.39 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.889e-05/0.01206, allocations: 174.6 kB / 262.3 MB, free: 12.21 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/0.01216, allocations: 98.25 kB / 262.4 MB, free: 12.11 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.408e-05/0.01224, allocations: 350.7 kB / 262.8 MB, free: 11.76 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.01236, allocations: 93.27 kB / 262.9 MB, free: 11.67 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000137/0.0125, allocations: 160.1 kB / 263 MB, free: 11.5 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003476/0.01285, allocations: 246.9 kB / 263.3 MB, free: 11.24 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.01285, allocations: 4 kB / 263.3 MB, free: 11.23 MB / 250.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0004729/0.01332, allocations: 404.8 kB / 263.7 MB, free: 10.82 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.01333, allocations: 7.938 kB / 263.7 MB, free: 10.82 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.01334, allocations: 4 kB / 263.7 MB, free: 10.81 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005271/0.01386, allocations: 446.3 kB / 264.1 MB, free: 10.37 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.01401, allocations: 71.89 kB / 264.2 MB, free: 10.3 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001667/0.01567, allocations: 3.033 MB / 267.2 MB, free: 7.062 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001643/0.01584, allocations: 55.88 kB / 267.3 MB, free: 7.008 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.304e-05/0.01586, allocations: 12 kB / 267.3 MB, free: 6.996 MB / 250.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 (46): * Single equations (assignments): 43 * 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,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0001028/0.01596, allocations: 152.5 kB / 267.4 MB, free: 6.836 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.423e-05/0.01602, allocations: 43.91 kB / 267.5 MB, free: 6.793 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004713/0.01649, allocations: 408.9 kB / 267.9 MB, free: 6.379 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.01649, allocations: 4 kB / 267.9 MB, free: 6.375 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.345e-06/0.01649, allocations: 0 / 267.9 MB, free: 6.375 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.0165, allocations: 3.984 kB / 267.9 MB, free: 6.371 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007389/0.01724, allocations: 0.6636 MB / 268.5 MB, free: 5.676 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.01724, allocations: 0 / 268.5 MB, free: 5.676 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001298/0.01737, allocations: 51.92 kB / 268.6 MB, free: 5.625 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004693/0.01784, allocations: 445.4 kB / 269 MB, free: 5.184 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.509e-05/0.01786, allocations: 23.91 kB / 269 MB, free: 5.16 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001243/0.01911, allocations: 3.009 MB / 272.1 MB, free: 1.953 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.01911, allocations: 0 / 272.1 MB, free: 1.953 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005639/0.01967, allocations: 0.5716 MB / 272.6 MB, free: 1.355 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.943e-05/0.01976, allocations: 55.67 kB / 272.7 MB, free: 1.301 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.04e-05/0.0198, allocations: 16 kB / 272.7 MB, free: 1.285 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001544/0.01996, allocations: 47.94 kB / 272.7 MB, free: 1.238 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.02008, allocations: 96.25 kB / 272.8 MB, free: 1.145 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.383e-05/0.0201, allocations: 19.97 kB / 272.9 MB, free: 1.125 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.978e-05/0.02015, allocations: 70.78 kB / 272.9 MB, free: 1.055 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02015, allocations: 0 / 272.9 MB, free: 1.055 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002556/0.02041, allocations: 128 kB / 273.1 MB, free: 0.9297 MB / 250.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,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001359/0.02054, allocations: 124.2 kB / 273.2 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005265/0.02107, allocations: 0.5503 MB / 273.7 MB, free: 224 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.02107, allocations: 7.938 kB / 273.7 MB, free: 216 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005863/0.02166, allocations: 436.3 kB / 274.2 MB, free: 15.76 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002382/0.0219, allocations: 88.3 kB / 274.2 MB, free: 15.67 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001144/0.02304, allocations: 0.7722 MB / 275 MB, free: 14.86 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.909e-05/0.02311, allocations: 105.3 kB / 275.1 MB, free: 14.74 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.723e-05/0.02319, allocations: 30.97 kB / 275.2 MB, free: 14.71 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001258/0.02331, allocations: 103.3 kB / 275.3 MB, free: 14.61 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.02331, allocations: 3.938 kB / 275.3 MB, free: 14.61 MB / 266.7 MB Notification: Performance of Templates: time 0.009677/0.03299, allocations: 9.36 MB / 284.6 MB, free: 5.27 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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: 2.9041400998830795]