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.001052/0.001052, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001196/0.001196, allocations: 168.4 kB / 25.61 MB, free: 8.586 MB / 18.57 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.9281/0.9281, allocations: 177.1 MB / 206.1 MB, free: 4.461 MB / 186.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.743e-06/1.743e-06, allocations: 0 / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.495e-05/2.669e-05, allocations: 2.312 kB / 274.2 MB, free: 4.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003302/0.003329, allocations: 2.926 MB / 277.1 MB, free: 1.48 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001336/0.004664, allocations: 1.025 MB / 278.1 MB, free: 468 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001354/0.0048, allocations: 15.94 kB / 278.1 MB, free: 452 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002405/0.00504, allocations: 79.23 kB / 278.2 MB, free: 372 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002762/0.005316, allocations: 170.7 kB / 278.4 MB, free: 200 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002762/0.005593, allocations: 191.7 kB / 278.6 MB, free: 8 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004258/0.006018, allocations: 0.6163 MB / 279.2 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.006164, allocations: 75.03 kB / 279.3 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002982/0.006462, allocations: 371.3 kB / 279.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002498/0.006712, allocations: 235.4 kB / 279.9 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.533e-05/0.006767, allocations: 48 kB / 279.9 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001242/0.006892, allocations: 107.8 kB / 280 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000118/0.00701, allocations: 135.5 kB / 280.1 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001227/0.007132, allocations: 171.5 kB / 280.3 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004014/0.007534, allocations: 458.5 kB / 280.8 MB, free: 13.81 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.007537, allocations: 0 / 280.8 MB, free: 13.81 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.007538, allocations: 0 / 280.8 MB, free: 13.81 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.007544, allocations: 0 / 280.8 MB, free: 13.81 MB / 266.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.0008419/0.008386, allocations: 0.788 MB / 281.5 MB, free: 12.99 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.96e-05/0.008416, allocations: 8.031 kB / 281.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001096/0.008525, allocations: 76.66 kB / 281.6 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002967/0.008822, allocations: 288 kB / 281.9 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.068e-05/0.008853, allocations: 29.38 kB / 281.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.266e-05/0.008905, allocations: 36.38 kB / 282 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003813/0.009286, allocations: 306.9 kB / 282.3 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.009303, allocations: 12.14 kB / 282.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.718e-05/0.00933, allocations: 8.375 kB / 282.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.308e-06/0.009339, allocations: 15.94 kB / 282.3 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002974/0.009637, allocations: 214.7 kB / 282.5 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001229/0.01087, allocations: 0.9997 MB / 283.5 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003862/0.01125, allocations: 249.6 kB / 283.8 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001435/0.0114, allocations: 125.1 kB / 283.9 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.621e-05/0.01143, allocations: 8.5 kB / 283.9 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.257e-05/0.01145, allocations: 41.89 kB / 283.9 MB, free: 10.5 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.453e-06/0.01146, allocations: 0 / 283.9 MB, free: 10.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=54): time 0.002175/0.01363, allocations: 1.369 MB / 285.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.614e-05/0.01366, allocations: 55.91 kB / 285.4 MB, free: 8.992 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00016/0.01382, allocations: 288.2 kB / 285.6 MB, free: 8.691 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.858e-05/0.01386, allocations: 45.7 kB / 285.7 MB, free: 8.641 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.181e-05/0.01395, allocations: 223.6 kB / 285.9 MB, free: 8.418 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001042/0.01405, allocations: 194.4 kB / 286.1 MB, free: 8.227 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.01417, allocations: 103.9 kB / 286.2 MB, free: 8.117 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.01429, allocations: 0.5195 MB / 286.7 MB, free: 7.586 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001491/0.01444, allocations: 105.2 kB / 286.8 MB, free: 7.484 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001715/0.01461, allocations: 197 kB / 287 MB, free: 7.27 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002592/0.01487, allocations: 243.9 kB / 287.2 MB, free: 7.012 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.01487, allocations: 0 / 287.2 MB, free: 7.012 MB / 266.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0006295/0.0155, allocations: 492.1 kB / 287.7 MB, free: 6.512 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.01552, allocations: 10.19 kB / 287.7 MB, free: 6.504 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.01552, allocations: 3.938 kB / 287.7 MB, free: 6.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000537/0.01606, allocations: 338.8 kB / 288.1 MB, free: 6.156 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000141/0.0162, allocations: 63.91 kB / 288.1 MB, free: 6.094 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001848/0.01805, allocations: 4.404 MB / 292.5 MB, free: 1.434 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002055/0.01825, allocations: 56.16 kB / 292.6 MB, free: 1.379 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.472e-05/0.01828, allocations: 15.94 kB / 292.6 MB, free: 1.363 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.000134/0.01841, allocations: 180.5 kB / 292.8 MB, free: 1.176 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.006e-05/0.01849, allocations: 59.7 kB / 292.8 MB, free: 1.117 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006467/0.01914, allocations: 0.4926 MB / 293.3 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.01914, allocations: 4 kB / 293.3 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.285e-06/0.01915, allocations: 0 / 293.3 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.01915, allocations: 3.984 kB / 293.3 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001032/0.02018, allocations: 0.8939 MB / 294.2 MB, free: 15.66 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.02019, allocations: 3.984 kB / 294.2 MB, free: 15.65 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001452/0.02033, allocations: 47.92 kB / 294.3 MB, free: 15.61 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005302/0.02086, allocations: 334.8 kB / 294.6 MB, free: 15.27 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.858e-05/0.02089, allocations: 19.97 kB / 294.6 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001787/0.02268, allocations: 4.389 MB / 299 MB, free: 10.6 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.02268, allocations: 0 / 299 MB, free: 10.6 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007592/0.02344, allocations: 0.6961 MB / 299.7 MB, free: 9.871 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.02356, allocations: 83.69 kB / 299.8 MB, free: 9.789 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.28e-05/0.02361, allocations: 24.16 kB / 299.8 MB, free: 9.766 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001924/0.02381, allocations: 47.94 kB / 299.9 MB, free: 9.719 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003952/0.0242, allocations: 108.2 kB / 300 MB, free: 9.613 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.826e-05/0.02423, allocations: 23.97 kB / 300 MB, free: 9.59 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001019/0.02433, allocations: 201 kB / 300.2 MB, free: 9.387 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02433, allocations: 0 / 300.2 MB, free: 9.387 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003469/0.02468, allocations: 120 kB / 300.3 MB, free: 9.27 MB / 282.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.0007315/0.02541, allocations: 366.8 kB / 300.7 MB, free: 9.023 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006815/0.02609, allocations: 0.6889 MB / 301.4 MB, free: 8.301 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.02609, allocations: 0 / 301.4 MB, free: 8.301 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004069/0.0265, allocations: 0.5562 MB / 301.9 MB, free: 7.707 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003619/0.02686, allocations: 106.4 kB / 302 MB, free: 7.605 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001346/0.02821, allocations: 0.849 MB / 302.9 MB, free: 6.723 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.791e-05/0.02828, allocations: 118.3 kB / 303 MB, free: 6.582 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.569e-05/0.02837, allocations: 39.27 kB / 303 MB, free: 6.543 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001653/0.02854, allocations: 142.1 kB / 303.2 MB, free: 6.402 MB / 282.7 MB Notification: Performance of SimCode: time 8.42e-07/0.02854, allocations: 0 / 303.2 MB, free: 6.402 MB / 282.7 MB Notification: Performance of Templates: time 0.01172/0.04026, allocations: 9.766 MB / 312.9 MB, free: 12.73 MB / 298.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0515336571261287]