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.001116/0.001116, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001551/0.002667, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.001115/0.001115, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0014/0.002515, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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.9503/0.9503, allocations: 177.4 MB / 189.9 MB, free: 4.836 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08299/1.033, allocations: 53.87 MB / 243.7 MB, free: 14.9 MB / 250.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.302e-06/1.302e-06, allocations: 0 / 245 MB, free: 13.65 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.917e-05/2.047e-05, allocations: 6.25 kB / 245 MB, free: 13.64 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002984/0.003004, allocations: 2.98 MB / 248 MB, free: 10.64 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001485/0.004489, allocations: 1.075 MB / 249.1 MB, free: 9.559 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001506/0.00464, allocations: 4 kB / 249.1 MB, free: 9.555 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001867/0.004827, allocations: 75.3 kB / 249.1 MB, free: 9.48 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002594/0.005086, allocations: 166.8 kB / 249.3 MB, free: 9.316 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002906/0.005377, allocations: 207.5 kB / 249.5 MB, free: 9.113 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004339/0.00581, allocations: 0.6007 MB / 250.1 MB, free: 8.512 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001397/0.00595, allocations: 83.02 kB / 250.2 MB, free: 8.426 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003667/0.006317, allocations: 396 kB / 250.6 MB, free: 8.039 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002416/0.006558, allocations: 239.4 kB / 250.8 MB, free: 7.805 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.879e-05/0.006617, allocations: 44 kB / 250.9 MB, free: 7.762 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001382/0.006755, allocations: 107.9 kB / 251 MB, free: 7.656 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001033/0.006859, allocations: 91.67 kB / 251.1 MB, free: 7.566 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000116/0.006975, allocations: 127.8 kB / 251.2 MB, free: 7.441 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004097/0.007385, allocations: 402.6 kB / 251.6 MB, free: 7.047 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.549e-05/0.0074, allocations: 0 / 251.6 MB, free: 7.047 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.007401, allocations: 0 / 251.6 MB, free: 7.047 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.67e-05/0.007418, allocations: 0 / 251.6 MB, free: 7.047 MB / 250.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.000886/0.008304, allocations: 0.7489 MB / 252.3 MB, free: 6.273 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.194e-05/0.008336, allocations: 12.61 kB / 252.3 MB, free: 6.262 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.741e-05/0.008423, allocations: 60.89 kB / 252.4 MB, free: 6.203 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000286/0.008709, allocations: 237.2 kB / 252.6 MB, free: 5.938 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.112e-05/0.00874, allocations: 33.31 kB / 252.7 MB, free: 5.902 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.07e-05/0.008791, allocations: 40.36 kB / 252.7 MB, free: 5.863 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003697/0.009161, allocations: 310.9 kB / 253 MB, free: 5.555 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.009176, allocations: 8.141 kB / 253 MB, free: 5.547 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.887e-05/0.009205, allocations: 16.38 kB / 253 MB, free: 5.531 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.009215, allocations: 11.94 kB / 253 MB, free: 5.52 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002568/0.009471, allocations: 182.8 kB / 253.2 MB, free: 5.34 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001152/0.01062, allocations: 0.773 MB / 254 MB, free: 4.539 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003817/0.011, allocations: 233.2 kB / 254.2 MB, free: 4.301 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001353/0.01114, allocations: 106.3 kB / 254.3 MB, free: 4.195 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.566e-05/0.01118, allocations: 8.5 kB / 254.3 MB, free: 4.188 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.412e-05/0.0112, allocations: 39.06 kB / 254.4 MB, free: 4.141 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 1.813e-06/0.0112, allocations: 0 / 254.4 MB, free: 4.141 MB / 250.7 MB Notification: Performance of matching and sorting (n=54): time 0.002091/0.01329, allocations: 1.283 MB / 255.6 MB, free: 2.797 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.76e-05/0.01332, allocations: 59.91 kB / 255.7 MB, free: 2.727 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001521/0.01347, allocations: 246.5 kB / 255.9 MB, free: 2.473 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.134e-05/0.01351, allocations: 45.7 kB / 256 MB, free: 2.422 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.117e-05/0.01358, allocations: 152.9 kB / 256.1 MB, free: 2.266 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.938e-05/0.01367, allocations: 190.4 kB / 256.3 MB, free: 2.078 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001064/0.01378, allocations: 102.3 kB / 256.4 MB, free: 1.973 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.586e-05/0.01387, allocations: 350.7 kB / 256.8 MB, free: 1.621 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.014, allocations: 81.28 kB / 256.8 MB, free: 1.539 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001426/0.01414, allocations: 152.1 kB / 257 MB, free: 1.375 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002304/0.01437, allocations: 241.7 kB / 257.2 MB, free: 1.121 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.01437, allocations: 0 / 257.2 MB, free: 1.121 MB / 250.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0004897/0.01486, allocations: 384.8 kB / 257.6 MB, free: 0.7305 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.01488, allocations: 8 kB / 257.6 MB, free: 0.7227 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.01488, allocations: 0 / 257.6 MB, free: 0.7227 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004986/0.01538, allocations: 314.3 kB / 257.9 MB, free: 416 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001494/0.01553, allocations: 71.91 kB / 258 MB, free: 344 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001502/0.01703, allocations: 3.002 MB / 261 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001848/0.01722, allocations: 60.14 kB / 261.1 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.34e-05/0.01724, allocations: 19.92 kB / 261.1 MB, free: 13.05 MB / 266.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.0001164/0.01736, allocations: 140.6 kB / 261.2 MB, free: 12.91 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.014e-05/0.01742, allocations: 43.91 kB / 261.3 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004987/0.01792, allocations: 416.9 kB / 261.7 MB, free: 12.44 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.01792, allocations: 4 kB / 261.7 MB, free: 12.44 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.083e-06/0.01792, allocations: 0 / 261.7 MB, free: 12.44 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.01793, allocations: 3.984 kB / 261.7 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007846/0.01871, allocations: 0.6726 MB / 262.3 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.01872, allocations: 4 kB / 262.3 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001467/0.01886, allocations: 51.97 kB / 262.4 MB, free: 11.68 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.812e-05/0.01896, allocations: 63.77 kB / 262.5 MB, free: 11.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004102/0.01937, allocations: 306.2 kB / 262.8 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.681e-05/0.0194, allocations: 15.98 kB / 262.8 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001312/0.02071, allocations: 3.007 MB / 265.8 MB, free: 8.078 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.02071, allocations: 0 / 265.8 MB, free: 8.078 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005927/0.0213, allocations: 0.5654 MB / 266.3 MB, free: 7.484 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.997e-05/0.02135, allocations: 20 kB / 266.4 MB, free: 7.465 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001706/0.02152, allocations: 43.95 kB / 266.4 MB, free: 7.422 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.02165, allocations: 96.3 kB / 266.5 MB, free: 7.328 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.301e-05/0.02167, allocations: 19.97 kB / 266.5 MB, free: 7.309 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.693e-05/0.02174, allocations: 86.77 kB / 266.6 MB, free: 7.219 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02174, allocations: 0 / 266.6 MB, free: 7.219 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002828/0.02202, allocations: 124 kB / 266.7 MB, free: 7.098 MB / 266.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.001049/0.02307, allocations: 490.1 kB / 267.2 MB, free: 6.805 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005682/0.02364, allocations: 0.5391 MB / 267.7 MB, free: 6.238 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.192e-05/0.02365, allocations: 7.938 kB / 267.8 MB, free: 6.23 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003363/0.02399, allocations: 452.5 kB / 268.2 MB, free: 5.762 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002934/0.02428, allocations: 136.3 kB / 268.3 MB, free: 5.629 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003461/0.02774, allocations: 0.8067 MB / 269.1 MB, free: 4.797 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.663e-05/0.02782, allocations: 122.3 kB / 269.3 MB, free: 4.656 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.987e-05/0.02792, allocations: 39.34 kB / 269.3 MB, free: 4.617 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001542/0.02807, allocations: 111.3 kB / 269.4 MB, free: 4.508 MB / 266.7 MB Notification: Performance of SimCode: time 1.533e-06/0.02808, allocations: 0 / 269.4 MB, free: 4.508 MB / 266.7 MB Notification: Performance of Templates: time 0.01097/0.03905, allocations: 9.599 MB / 279 MB, free: 10.99 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 -ignoreHideResult -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: 2.7457342026755214]