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.001112/0.001112, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001871/0.002983, allocations: 457.8 kB / 10.45 MB, free: 244 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.001233/0.001233, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001704/0.002938, allocations: 475.6 kB / 11.82 MB, free: 2.348 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.9545/0.9545, allocations: 177.5 MB / 190 MB, free: 4.77 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0854/1.04, allocations: 53.86 MB / 243.9 MB, free: 14.83 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.623e-06/1.623e-06, allocations: 0 / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.141e-05/2.303e-05, allocations: 5.406 kB / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004816/0.004839, allocations: 2.995 MB / 248.2 MB, free: 10.54 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001976/0.006815, allocations: 1.075 MB / 249.3 MB, free: 9.453 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002002/0.007015, allocations: 7.938 kB / 249.3 MB, free: 9.445 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00024/0.007255, allocations: 75.3 kB / 249.3 MB, free: 9.371 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003457/0.007601, allocations: 170.6 kB / 249.5 MB, free: 9.203 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003977/0.007998, allocations: 195.7 kB / 249.7 MB, free: 9.012 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006103/0.008609, allocations: 0.6123 MB / 250.3 MB, free: 8.395 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001587/0.008767, allocations: 86.95 kB / 250.4 MB, free: 8.305 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003624/0.00913, allocations: 392 kB / 250.8 MB, free: 7.922 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002472/0.009377, allocations: 239.4 kB / 251 MB, free: 7.688 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.816e-05/0.009435, allocations: 44 kB / 251.1 MB, free: 7.645 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001408/0.009576, allocations: 111.9 kB / 251.2 MB, free: 7.535 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001044/0.00968, allocations: 87.67 kB / 251.3 MB, free: 7.449 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.009786, allocations: 127.8 kB / 251.4 MB, free: 7.324 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003651/0.01015, allocations: 402.6 kB / 251.8 MB, free: 6.93 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.368e-05/0.01016, allocations: 4 kB / 251.8 MB, free: 6.926 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.01017, allocations: 0 / 251.8 MB, free: 6.926 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.116e-05/0.01018, allocations: 0 / 251.8 MB, free: 6.926 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.0008342/0.01101, allocations: 0.7489 MB / 252.5 MB, free: 6.152 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.913e-05/0.01104, allocations: 8.625 kB / 252.5 MB, free: 6.145 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.986e-05/0.01112, allocations: 60.89 kB / 252.6 MB, free: 6.086 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002718/0.01139, allocations: 241.2 kB / 252.8 MB, free: 5.824 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.013e-05/0.01142, allocations: 29.38 kB / 252.9 MB, free: 5.793 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.975e-05/0.01147, allocations: 40.36 kB / 252.9 MB, free: 5.754 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003407/0.01181, allocations: 314.8 kB / 253.2 MB, free: 5.441 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.01183, allocations: 8.141 kB / 253.2 MB, free: 5.434 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.704e-05/0.01185, allocations: 16.38 kB / 253.2 MB, free: 5.418 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.01186, allocations: 15.92 kB / 253.2 MB, free: 5.402 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002372/0.0121, allocations: 178.9 kB / 253.4 MB, free: 5.227 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001049/0.01315, allocations: 0.7731 MB / 254.2 MB, free: 4.426 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003383/0.01349, allocations: 229 kB / 254.4 MB, free: 4.195 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001141/0.0136, allocations: 102.3 kB / 254.5 MB, free: 4.09 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.494e-05/0.01364, allocations: 16.5 kB / 254.5 MB, free: 4.07 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.5e-05/0.01366, allocations: 39 kB / 254.6 MB, free: 4.023 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 1.573e-06/0.01366, allocations: 0 / 254.6 MB, free: 4.023 MB / 250.7 MB Notification: Performance of matching and sorting (n=54): time 0.001967/0.01563, allocations: 1.33 MB / 255.9 MB, free: 2.641 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.648e-05/0.01566, allocations: 59.91 kB / 256 MB, free: 2.57 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/0.0158, allocations: 242.6 kB / 256.2 MB, free: 2.316 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.577e-05/0.01584, allocations: 45.69 kB / 256.2 MB, free: 2.266 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.981e-05/0.0159, allocations: 152.9 kB / 256.4 MB, free: 2.109 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.897e-05/0.01599, allocations: 194.4 kB / 256.6 MB, free: 1.918 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.0161, allocations: 98.28 kB / 256.7 MB, free: 1.816 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.454e-05/0.01618, allocations: 346.7 kB / 257 MB, free: 1.469 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001237/0.0163, allocations: 89.22 kB / 257.1 MB, free: 1.379 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/0.01644, allocations: 152.1 kB / 257.3 MB, free: 1.215 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002097/0.01665, allocations: 245.6 kB / 257.5 MB, free: 0.957 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.01665, allocations: 0 / 257.5 MB, free: 0.957 MB / 250.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.000435/0.01708, allocations: 384.9 kB / 257.9 MB, free: 0.5625 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.0171, allocations: 8 kB / 257.9 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.0171, allocations: 4 kB / 257.9 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004788/0.01758, allocations: 306.4 kB / 258.2 MB, free: 248 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001416/0.01772, allocations: 75.84 kB / 258.3 MB, free: 172 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001467/0.01919, allocations: 2.996 MB / 261.2 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001774/0.01937, allocations: 56.05 kB / 261.3 MB, free: 12.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.212e-05/0.01939, allocations: 19.98 kB / 261.3 MB, free: 12.89 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.0001152/0.0195, allocations: 140.6 kB / 261.5 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.503e-05/0.01956, allocations: 47.84 kB / 261.5 MB, free: 12.7 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004707/0.02003, allocations: 420.9 kB / 261.9 MB, free: 12.28 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.02004, allocations: 4 kB / 261.9 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.02004, allocations: 0 / 261.9 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.02004, allocations: 3.984 kB / 261.9 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007686/0.02081, allocations: 0.6609 MB / 262.6 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.02082, allocations: 4 kB / 262.6 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001364/0.02095, allocations: 59.91 kB / 262.6 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.969e-05/0.02104, allocations: 51.77 kB / 262.7 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004005/0.02144, allocations: 315.5 kB / 263 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.475e-05/0.02147, allocations: 15.98 kB / 263 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001334/0.0228, allocations: 3.011 MB / 266 MB, free: 7.918 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.0228, allocations: 0 / 266 MB, free: 7.918 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005737/0.02338, allocations: 0.5614 MB / 266.6 MB, free: 7.328 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.471e-05/0.02342, allocations: 20 kB / 266.6 MB, free: 7.309 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001617/0.02358, allocations: 52.03 kB / 266.7 MB, free: 7.258 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/0.02371, allocations: 96.3 kB / 266.8 MB, free: 7.164 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-05/0.02373, allocations: 23.97 kB / 266.8 MB, free: 7.141 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.412e-05/0.0238, allocations: 78.78 kB / 266.9 MB, free: 7.059 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0238, allocations: 0 / 266.9 MB, free: 7.059 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002776/0.02407, allocations: 116 kB / 267 MB, free: 6.945 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.001021/0.02509, allocations: 499.2 kB / 267.5 MB, free: 6.641 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005675/0.02566, allocations: 0.5474 MB / 268 MB, free: 6.066 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.245e-05/0.02567, allocations: 11.94 kB / 268 MB, free: 6.055 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003384/0.02601, allocations: 458.3 kB / 268.5 MB, free: 5.582 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004293/0.02644, allocations: 0.5624 MB / 269 MB, free: 4.918 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003218/0.02966, allocations: 0.8052 MB / 269.8 MB, free: 4.086 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.393e-05/0.02973, allocations: 122.3 kB / 270 MB, free: 3.941 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.771e-05/0.02983, allocations: 31.28 kB / 270 MB, free: 3.91 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000156/0.02999, allocations: 123.3 kB / 270.1 MB, free: 3.789 MB / 266.7 MB Notification: Performance of SimCode: time 9.51e-07/0.02999, allocations: 0 / 270.1 MB, free: 3.789 MB / 266.7 MB Notification: Performance of Templates: time 0.01105/0.04104, allocations: 9.63 MB / 279.7 MB, free: 10.24 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.765958983451128]