Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001027/0.001027, allocations: 75.77 kB / 22.45 MB, free: 2.09 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.001079/0.001079, allocations: 165.5 kB / 25.75 MB, free: 8.953 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9307/0.9307, allocations: 158.6 MB / 187.5 MB, free: 2.957 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.262e-06/1.262e-06, allocations: 0 / 251.1 MB, free: 7.828 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.48e-05/1.606e-05, allocations: 2.312 kB / 251.1 MB, free: 7.824 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.00279/0.002806, allocations: 2.834 MB / 253.9 MB, free: 4.969 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00125/0.004056, allocations: 0.9085 MB / 254.8 MB, free: 4.051 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001335/0.00419, allocations: 11.94 kB / 254.8 MB, free: 4.039 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001697/0.00436, allocations: 63.38 kB / 254.9 MB, free: 3.977 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000179/0.004539, allocations: 111 kB / 255 MB, free: 3.867 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003802/0.004919, allocations: 223.5 kB / 255.2 MB, free: 3.648 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004079/0.005327, allocations: 0.581 MB / 255.8 MB, free: 3.066 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001671/0.005494, allocations: 75.05 kB / 255.9 MB, free: 2.992 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002887/0.005782, allocations: 351.3 kB / 256.2 MB, free: 2.648 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002316/0.006014, allocations: 231.4 kB / 256.5 MB, free: 2.422 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.013e-05/0.006064, allocations: 44 kB / 256.5 MB, free: 2.379 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001186/0.006183, allocations: 91.95 kB / 256.6 MB, free: 2.289 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.223e-05/0.006275, allocations: 115.6 kB / 256.7 MB, free: 2.176 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001225/0.006397, allocations: 155.6 kB / 256.9 MB, free: 2.023 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000392/0.006789, allocations: 438.5 kB / 257.3 MB, free: 1.59 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.006792, allocations: 0 / 257.3 MB, free: 1.59 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.006792, allocations: 3.938 kB / 257.3 MB, free: 1.586 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.006799, allocations: 4 kB / 257.3 MB, free: 1.582 MB / 234.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.0008022/0.007601, allocations: 0.7377 MB / 258 MB, free: 0.8047 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/0.007635, allocations: 11.98 kB / 258 MB, free: 0.793 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.73e-05/0.007732, allocations: 80.66 kB / 258.1 MB, free: 0.7148 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002486/0.007981, allocations: 255.4 kB / 258.4 MB, free: 448 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.987e-05/0.008041, allocations: 25.38 kB / 258.4 MB, free: 424 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.852e-05/0.008089, allocations: 40.31 kB / 258.4 MB, free: 384 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005158/0.008605, allocations: 371.6 kB / 258.8 MB, free: 4 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.008622, allocations: 4.188 kB / 258.8 MB, free: 0 / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.498e-05/0.008667, allocations: 12.45 kB / 258.8 MB, free: 15.98 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.008676, allocations: 11.94 kB / 258.8 MB, free: 15.97 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003943/0.00907, allocations: 293.8 kB / 259.1 MB, free: 15.68 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001328/0.0104, allocations: 1.03 MB / 260.1 MB, free: 14.6 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004142/0.01081, allocations: 276.7 kB / 260.4 MB, free: 14.32 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001954/0.01101, allocations: 160.4 kB / 260.6 MB, free: 14.16 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.881e-05/0.01104, allocations: 8.375 kB / 260.6 MB, free: 14.15 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.114e-05/0.01106, allocations: 41.7 kB / 260.6 MB, free: 14.1 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.223e-06/0.01106, allocations: 4 kB / 260.6 MB, free: 14.1 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.002447/0.01351, allocations: 1.575 MB / 262.2 MB, free: 12.45 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.714e-05/0.01353, allocations: 71.83 kB / 262.3 MB, free: 12.37 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001581/0.01369, allocations: 284.3 kB / 262.5 MB, free: 12.07 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.117e-05/0.01372, allocations: 37.7 kB / 262.6 MB, free: 12.03 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.412e-05/0.01382, allocations: 231.6 kB / 262.8 MB, free: 11.8 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.777e-05/0.01391, allocations: 174.6 kB / 263 MB, free: 11.63 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.01402, allocations: 99.94 kB / 263.1 MB, free: 11.52 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.01414, allocations: 0.5195 MB / 263.6 MB, free: 10.99 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002162/0.01435, allocations: 153.2 kB / 263.7 MB, free: 10.84 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002363/0.01459, allocations: 237.1 kB / 264 MB, free: 10.59 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003462/0.01494, allocations: 316 kB / 264.3 MB, free: 10.25 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.01494, allocations: 0 / 264.3 MB, free: 10.25 MB / 250.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001039/0.01598, allocations: 0.6016 MB / 264.9 MB, free: 9.633 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.01599, allocations: 4 kB / 264.9 MB, free: 9.629 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.016, allocations: 4 kB / 264.9 MB, free: 9.625 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006264/0.01662, allocations: 490.7 kB / 265.4 MB, free: 9.133 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.01677, allocations: 71.89 kB / 265.4 MB, free: 9.062 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001862/0.01863, allocations: 4.497 MB / 269.9 MB, free: 4.293 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001896/0.01882, allocations: 56.16 kB / 270 MB, free: 4.238 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.811e-05/0.01885, allocations: 19.98 kB / 270 MB, free: 4.219 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.0001326/0.01898, allocations: 192.3 kB / 270.2 MB, free: 4.02 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.466e-05/0.01905, allocations: 47.77 kB / 270.3 MB, free: 3.973 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007588/0.01981, allocations: 0.5784 MB / 270.8 MB, free: 3.371 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.01981, allocations: 4 kB / 270.8 MB, free: 3.367 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.01981, allocations: 4 kB / 270.8 MB, free: 3.363 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.01982, allocations: 7.922 kB / 270.8 MB, free: 3.355 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001344/0.02117, allocations: 0.99 MB / 271.8 MB, free: 2.316 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.02117, allocations: 0 / 271.8 MB, free: 2.316 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001414/0.02131, allocations: 55.91 kB / 271.9 MB, free: 2.262 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005458/0.02186, allocations: 486.6 kB / 272.4 MB, free: 1.773 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.954e-05/0.02189, allocations: 19.97 kB / 272.4 MB, free: 1.754 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001733/0.02362, allocations: 4.49 MB / 276.9 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.02362, allocations: 0 / 276.9 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009044/0.02452, allocations: 0.8446 MB / 277.7 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000116/0.02464, allocations: 83.62 kB / 277.8 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.012e-05/0.02469, allocations: 23.92 kB / 277.8 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001752/0.02486, allocations: 43.95 kB / 277.9 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001399/0.025, allocations: 100.3 kB / 278 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-05/0.02503, allocations: 19.98 kB / 278 MB, free: 11.84 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.941e-05/0.02513, allocations: 209 kB / 278.2 MB, free: 11.64 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02513, allocations: 0 / 278.2 MB, free: 11.64 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002982/0.02543, allocations: 124 kB / 278.3 MB, free: 11.52 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.0001742/0.0256, allocations: 135.2 kB / 278.4 MB, free: 11.38 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001089/0.02669, allocations: 0.7623 MB / 279.2 MB, free: 10.57 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.02669, allocations: 0 / 279.2 MB, free: 10.57 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004288/0.02712, allocations: 0.5913 MB / 279.8 MB, free: 9.945 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003302/0.02745, allocations: 84.42 kB / 279.9 MB, free: 9.863 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001358/0.02881, allocations: 0.8648 MB / 280.7 MB, free: 8.961 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.06e-05/0.02887, allocations: 105.3 kB / 280.8 MB, free: 8.84 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.702e-05/0.02895, allocations: 30.97 kB / 280.9 MB, free: 8.812 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.361e-05/0.02901, allocations: 36.48 kB / 280.9 MB, free: 8.777 MB / 266.7 MB Notification: Performance of SimCode: time 9.22e-07/0.02901, allocations: 0 / 280.9 MB, free: 8.777 MB / 266.7 MB Notification: Performance of Templates: time 0.009839/0.03885, allocations: 8.651 MB / 289.6 MB, free: 156 kB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.9728411799296737]