Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 77.36 kB / 10 MB, free: 0.6797 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001877/0.002952, allocations: 449.9 kB / 10.44 MB, free: 248 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 144.9 kB / 11.34 MB, free: 2.832 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001405/0.002467, allocations: 475.6 kB / 11.8 MB, free: 2.363 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9967/0.9967, allocations: 173.4 MB / 185.9 MB, free: 8.926 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07924/1.076, allocations: 52.5 MB / 238.4 MB, free: 4.363 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.203e-06/1.203e-06, allocations: 0 / 239.7 MB, free: 3.102 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.884e-05/2.004e-05, allocations: 5.828 kB / 239.7 MB, free: 3.098 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002608/0.002628, allocations: 2.848 MB / 242.6 MB, free: 240 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009471/0.003575, allocations: 0.919 MB / 243.5 MB, free: 15.31 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001076/0.003682, allocations: 4 kB / 243.5 MB, free: 15.3 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001234/0.003806, allocations: 59.39 kB / 243.6 MB, free: 15.25 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001449/0.003951, allocations: 119 kB / 243.7 MB, free: 15.13 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002834/0.004234, allocations: 207.5 kB / 243.9 MB, free: 14.93 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003582/0.004592, allocations: 0.5771 MB / 244.4 MB, free: 14.35 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001338/0.004726, allocations: 79.03 kB / 244.5 MB, free: 14.26 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002771/0.005003, allocations: 375.1 kB / 244.9 MB, free: 13.89 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002054/0.005209, allocations: 231.4 kB / 245.1 MB, free: 13.67 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.855e-05/0.005257, allocations: 44 kB / 245.2 MB, free: 13.62 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001423/0.005399, allocations: 107.9 kB / 245.3 MB, free: 13.52 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.948e-05/0.005469, allocations: 75.75 kB / 245.3 MB, free: 13.45 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.516e-05/0.005564, allocations: 115.8 kB / 245.5 MB, free: 13.33 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003192/0.005883, allocations: 362.8 kB / 245.8 MB, free: 12.98 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.247e-06/0.005893, allocations: 0 / 245.8 MB, free: 12.98 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.005893, allocations: 3.938 kB / 245.8 MB, free: 12.97 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.747e-06/0.005902, allocations: 0 / 245.8 MB, free: 12.97 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.000737/0.006639, allocations: 0.7063 MB / 246.5 MB, free: 12.24 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.775e-05/0.006667, allocations: 8.031 kB / 246.5 MB, free: 12.23 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.204e-05/0.006739, allocations: 52.89 kB / 246.6 MB, free: 12.18 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002257/0.006964, allocations: 216.6 kB / 246.8 MB, free: 11.94 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.52e-05/0.00699, allocations: 21.38 kB / 246.8 MB, free: 11.92 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.975e-05/0.007039, allocations: 44.33 kB / 246.9 MB, free: 11.88 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003368/0.007376, allocations: 323.6 kB / 247.2 MB, free: 11.55 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.007389, allocations: 192 / 247.2 MB, free: 11.55 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.422e-05/0.007413, allocations: 12.38 kB / 247.2 MB, free: 11.54 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.928e-06/0.007423, allocations: 15.92 kB / 247.2 MB, free: 11.52 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002269/0.00765, allocations: 190.8 kB / 247.4 MB, free: 11.34 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001144/0.008794, allocations: 0.7702 MB / 248.2 MB, free: 10.53 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003768/0.009171, allocations: 204.2 kB / 248.4 MB, free: 10.32 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001522/0.009323, allocations: 113.3 kB / 248.5 MB, free: 10.21 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.613e-05/0.009359, allocations: 8.375 kB / 248.5 MB, free: 10.2 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.535e-05/0.009384, allocations: 38.94 kB / 248.5 MB, free: 10.15 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.683e-06/0.009386, allocations: 4 kB / 248.5 MB, free: 10.15 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.002639/0.01203, allocations: 1.406 MB / 249.9 MB, free: 8.664 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.716e-05/0.01205, allocations: 59.91 kB / 250 MB, free: 8.594 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001538/0.01221, allocations: 232.9 kB / 250.2 MB, free: 8.355 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.972e-05/0.01225, allocations: 41.7 kB / 250.2 MB, free: 8.309 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.111e-05/0.01232, allocations: 164.9 kB / 250.4 MB, free: 8.145 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001087/0.01243, allocations: 166.6 kB / 250.6 MB, free: 7.98 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001352/0.01256, allocations: 98.23 kB / 250.7 MB, free: 7.879 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.667e-05/0.01266, allocations: 350.7 kB / 251 MB, free: 7.527 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000159/0.01282, allocations: 97.27 kB / 251.1 MB, free: 7.434 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001787/0.013, allocations: 164 kB / 251.3 MB, free: 7.254 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002881/0.01328, allocations: 250.9 kB / 251.5 MB, free: 6.992 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.01329, allocations: 3.984 kB / 251.5 MB, free: 6.988 MB / 250.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0006231/0.01391, allocations: 408.8 kB / 251.9 MB, free: 6.57 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.01392, allocations: 7.938 kB / 251.9 MB, free: 6.562 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.034e-06/0.01393, allocations: 8.172 kB / 251.9 MB, free: 6.555 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007122/0.01464, allocations: 442.1 kB / 252.4 MB, free: 6.113 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002159/0.01486, allocations: 71.91 kB / 252.4 MB, free: 6.043 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001701/0.01656, allocations: 3.037 MB / 255.5 MB, free: 2.812 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002214/0.01678, allocations: 56.19 kB / 255.5 MB, free: 2.758 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.155e-05/0.01681, allocations: 12 kB / 255.5 MB, free: 2.746 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.0001262/0.01694, allocations: 144.6 kB / 255.7 MB, free: 2.594 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.382e-05/0.01701, allocations: 43.84 kB / 255.7 MB, free: 2.551 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006226/0.01764, allocations: 424.8 kB / 256.1 MB, free: 2.117 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.01764, allocations: 4 kB / 256.1 MB, free: 2.113 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.01764, allocations: 4 kB / 256.1 MB, free: 2.109 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.01765, allocations: 0 / 256.1 MB, free: 2.109 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009418/0.01859, allocations: 0.6561 MB / 256.8 MB, free: 1.422 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.01859, allocations: 3.938 kB / 256.8 MB, free: 1.418 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001827/0.01877, allocations: 59.97 kB / 256.9 MB, free: 1.359 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001095/0.01888, allocations: 55.67 kB / 256.9 MB, free: 1.305 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006159/0.0195, allocations: 442.1 kB / 257.3 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.104e-05/0.01953, allocations: 19.97 kB / 257.4 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001548/0.02108, allocations: 3.009 MB / 260.4 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.02108, allocations: 0 / 260.4 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007206/0.0218, allocations: 0.5754 MB / 260.9 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.214e-05/0.02185, allocations: 12 kB / 261 MB, free: 13.03 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002208/0.02207, allocations: 51.94 kB / 261 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.02222, allocations: 92.34 kB / 261.1 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.994e-05/0.02225, allocations: 19.97 kB / 261.1 MB, free: 12.86 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.71e-05/0.02232, allocations: 74.78 kB / 261.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02232, allocations: 0 / 261.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003512/0.02267, allocations: 123.9 kB / 261.3 MB, free: 12.67 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,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001673/0.02284, allocations: 132.2 kB / 261.4 MB, free: 12.53 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006626/0.0235, allocations: 0.5513 MB / 262 MB, free: 11.95 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.094e-05/0.02351, allocations: 7.938 kB / 262 MB, free: 11.95 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004412/0.02395, allocations: 458.4 kB / 262.4 MB, free: 11.47 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004735/0.02443, allocations: 0.4963 MB / 262.9 MB, free: 10.89 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004215/0.02864, allocations: 0.7614 MB / 263.7 MB, free: 10.1 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.105e-05/0.02871, allocations: 109.3 kB / 263.8 MB, free: 9.977 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.984e-05/0.02881, allocations: 35.27 kB / 263.8 MB, free: 9.941 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001598/0.02897, allocations: 115.3 kB / 264 MB, free: 9.828 MB / 266.7 MB Notification: Performance of SimCode: time 5.21e-07/0.02897, allocations: 0 / 264 MB, free: 9.828 MB / 266.7 MB Notification: Performance of Templates: time 0.01265/0.04162, allocations: 9.608 MB / 273.6 MB, free: 324 kB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.748219578526914]