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.0007166/0.0007166, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009661/0.001683, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0006681/0.0006681, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008694/0.001538, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9456/0.9456, allocations: 177.2 MB / 189.8 MB, free: 5.254 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0801/1.026, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.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.372e-06/1.372e-06, allocations: 0 / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.308e-05/2.446e-05, allocations: 5.969 kB / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003236/0.003261, allocations: 2.988 MB / 247.7 MB, free: 11.22 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001472/0.004733, allocations: 1.083 MB / 248.8 MB, free: 10.13 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001424/0.004875, allocations: 7.938 kB / 248.8 MB, free: 10.12 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001976/0.005073, allocations: 71.31 kB / 248.9 MB, free: 10.05 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002658/0.005338, allocations: 174.6 kB / 249 MB, free: 9.879 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002914/0.00563, allocations: 195.6 kB / 249.2 MB, free: 9.688 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005096/0.006139, allocations: 0.6046 MB / 249.8 MB, free: 9.082 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/0.006317, allocations: 83 kB / 249.9 MB, free: 8.992 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004553/0.006772, allocations: 400 kB / 250.3 MB, free: 8.602 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002696/0.007042, allocations: 247.4 kB / 250.5 MB, free: 8.359 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.215e-05/0.007104, allocations: 44 kB / 250.6 MB, free: 8.316 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001449/0.007249, allocations: 99.86 kB / 250.7 MB, free: 8.219 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000113/0.007362, allocations: 91.73 kB / 250.8 MB, free: 8.129 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001017/0.007464, allocations: 127.8 kB / 250.9 MB, free: 8.004 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004137/0.007877, allocations: 398.6 kB / 251.3 MB, free: 7.613 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.182e-05/0.007889, allocations: 0 / 251.3 MB, free: 7.613 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.00789, allocations: 0 / 251.3 MB, free: 7.613 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.254e-05/0.007903, allocations: 3.938 kB / 251.3 MB, free: 7.609 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.0008726/0.008775, allocations: 0.7451 MB / 252 MB, free: 6.84 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.893e-05/0.008804, allocations: 8.031 kB / 252 MB, free: 6.832 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.827e-05/0.008893, allocations: 60.89 kB / 252.1 MB, free: 6.773 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002967/0.009189, allocations: 245.2 kB / 252.3 MB, free: 6.508 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.081e-05/0.00922, allocations: 29.38 kB / 252.4 MB, free: 6.477 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.402e-05/0.009274, allocations: 36.38 kB / 252.4 MB, free: 6.441 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003707/0.009645, allocations: 306.9 kB / 252.7 MB, free: 6.137 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.00966, allocations: 12.08 kB / 252.7 MB, free: 6.125 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.885e-05/0.009689, allocations: 20.31 kB / 252.7 MB, free: 6.105 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.009702, allocations: 15.94 kB / 252.7 MB, free: 6.09 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000242/0.009944, allocations: 182.8 kB / 252.9 MB, free: 5.91 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001092/0.01104, allocations: 0.7692 MB / 253.7 MB, free: 5.113 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003536/0.01139, allocations: 236.9 kB / 253.9 MB, free: 4.875 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001187/0.01151, allocations: 102.3 kB / 254 MB, free: 4.77 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.457e-05/0.01154, allocations: 8.5 kB / 254 MB, free: 4.762 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.263e-05/0.01156, allocations: 39.06 kB / 254.1 MB, free: 4.711 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 1.603e-06/0.01157, allocations: 0 / 254.1 MB, free: 4.711 MB / 250.7 MB Notification: Performance of matching and sorting (n=54): time 0.002043/0.01361, allocations: 1.33 MB / 255.4 MB, free: 3.328 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.645e-05/0.01364, allocations: 59.91 kB / 255.5 MB, free: 3.258 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001437/0.01378, allocations: 246.6 kB / 255.7 MB, free: 3 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.453e-05/0.01381, allocations: 37.7 kB / 255.7 MB, free: 2.957 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.111e-05/0.01388, allocations: 160.9 kB / 255.9 MB, free: 2.793 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.531e-05/0.01397, allocations: 194.4 kB / 256.1 MB, free: 2.602 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.922e-05/0.01407, allocations: 94.28 kB / 256.2 MB, free: 2.504 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.146e-05/0.01415, allocations: 350.8 kB / 256.5 MB, free: 2.152 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001243/0.01428, allocations: 81.28 kB / 256.6 MB, free: 2.07 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/0.01441, allocations: 160 kB / 256.8 MB, free: 1.898 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002321/0.01464, allocations: 241.6 kB / 257 MB, free: 1.645 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.01464, allocations: 4 kB / 257 MB, free: 1.641 MB / 250.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0004765/0.01512, allocations: 388.9 kB / 257.4 MB, free: 1.246 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.01514, allocations: 11.94 kB / 257.4 MB, free: 1.234 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.88e-06/0.01514, allocations: 0 / 257.4 MB, free: 1.234 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004783/0.01562, allocations: 312.8 kB / 257.7 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001468/0.01577, allocations: 71.91 kB / 257.8 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00162/0.01738, allocations: 2.999 MB / 260.8 MB, free: 13.65 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001891/0.01757, allocations: 60.19 kB / 260.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.063e-05/0.01759, allocations: 12 kB / 260.8 MB, free: 13.58 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.0001176/0.01771, allocations: 141.2 kB / 261 MB, free: 13.43 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.801e-05/0.01777, allocations: 47.89 kB / 261 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004751/0.01825, allocations: 416.9 kB / 261.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.01825, allocations: 4 kB / 261.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.01825, allocations: 0 / 261.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/0.01826, allocations: 3.984 kB / 261.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007858/0.01904, allocations: 0.6687 MB / 262.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.01905, allocations: 3.984 kB / 262.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001401/0.01919, allocations: 63.91 kB / 262.2 MB, free: 12.19 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.369e-05/0.01928, allocations: 47.78 kB / 262.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004117/0.01969, allocations: 307.1 kB / 262.5 MB, free: 11.83 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.225e-05/0.01972, allocations: 23.97 kB / 262.5 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001596/0.02132, allocations: 3.006 MB / 265.5 MB, free: 8.602 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.02132, allocations: 3.938 kB / 265.5 MB, free: 8.598 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006089/0.02193, allocations: 0.5577 MB / 266.1 MB, free: 8.012 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.927e-05/0.02198, allocations: 27.94 kB / 266.1 MB, free: 7.984 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001692/0.02215, allocations: 43.94 kB / 266.2 MB, free: 7.941 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001459/0.0223, allocations: 100.3 kB / 266.3 MB, free: 7.844 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.168e-05/0.02232, allocations: 15.98 kB / 266.3 MB, free: 7.828 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.368e-05/0.02239, allocations: 82.77 kB / 266.4 MB, free: 7.742 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02239, allocations: 0 / 266.4 MB, free: 7.742 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003124/0.02271, allocations: 116 kB / 266.5 MB, free: 7.629 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.001136/0.02384, allocations: 0.5105 MB / 267 MB, free: 7.34 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006437/0.02449, allocations: 0.5319 MB / 267.5 MB, free: 6.781 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-05/0.0245, allocations: 15.92 kB / 267.5 MB, free: 6.766 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003681/0.02487, allocations: 462.6 kB / 268 MB, free: 6.289 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004326/0.0253, allocations: 0.5615 MB / 268.6 MB, free: 5.633 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003269/0.02857, allocations: 0.8022 MB / 269.4 MB, free: 4.797 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.057e-05/0.02864, allocations: 122.3 kB / 269.5 MB, free: 4.656 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001018/0.02874, allocations: 35.27 kB / 269.5 MB, free: 4.621 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001562/0.0289, allocations: 115.3 kB / 269.6 MB, free: 4.508 MB / 266.7 MB Notification: Performance of SimCode: time 1.242e-06/0.0289, allocations: 0 / 269.6 MB, free: 4.508 MB / 266.7 MB Notification: Performance of Templates: time 0.01169/0.04059, allocations: 9.634 MB / 279.3 MB, free: 10.97 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7149994922801852]