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.001/0.001, allocations: 85.95 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.001063/0.001063, allocations: 162.5 kB / 25.6 MB, free: 8.602 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.9293/0.9293, allocations: 158.6 MB / 187.5 MB, free: 2.793 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 2.294e-06/2.294e-06, allocations: 0 / 251.5 MB, free: 7.133 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.14e-05/1.37e-05, allocations: 2.312 kB / 251.5 MB, free: 7.129 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002758/0.002772, allocations: 2.787 MB / 254.2 MB, free: 4.32 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001463/0.004235, allocations: 0.924 MB / 255.2 MB, free: 3.387 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002839/0.004519, allocations: 8 kB / 255.2 MB, free: 3.379 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002576/0.004776, allocations: 59.38 kB / 255.2 MB, free: 3.32 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002582/0.005035, allocations: 111 kB / 255.3 MB, free: 3.211 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005579/0.005593, allocations: 223.5 kB / 255.6 MB, free: 2.992 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004749/0.006067, allocations: 0.5887 MB / 256.2 MB, free: 2.402 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001662/0.006234, allocations: 75.05 kB / 256.2 MB, free: 2.328 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00036/0.006594, allocations: 347.3 kB / 256.6 MB, free: 1.988 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002471/0.006841, allocations: 227.5 kB / 256.8 MB, free: 1.766 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.45e-05/0.006895, allocations: 44 kB / 256.8 MB, free: 1.723 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001962/0.007092, allocations: 91.89 kB / 256.9 MB, free: 1.633 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.536e-05/0.007187, allocations: 119.7 kB / 257 MB, free: 1.512 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000122/0.007309, allocations: 155.6 kB / 257.2 MB, free: 1.359 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004886/0.007798, allocations: 438.5 kB / 257.6 MB, free: 0.9297 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.007802, allocations: 3.938 kB / 257.6 MB, free: 0.9258 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.007803, allocations: 0 / 257.6 MB, free: 0.9258 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.305e-06/0.007812, allocations: 4 kB / 257.6 MB, free: 0.9219 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.0008756/0.008687, allocations: 0.7415 MB / 258.4 MB, free: 144 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.008725, allocations: 11.98 kB / 258.4 MB, free: 132 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.511e-05/0.00882, allocations: 76.66 kB / 258.5 MB, free: 56 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002886/0.009109, allocations: 247.4 kB / 258.7 MB, free: 15.79 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.732e-05/0.009136, allocations: 25.38 kB / 258.7 MB, free: 15.76 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.908e-05/0.009186, allocations: 40.33 kB / 258.8 MB, free: 15.72 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003976/0.009583, allocations: 319.6 kB / 259.1 MB, free: 15.4 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.009597, allocations: 192 / 259.1 MB, free: 15.4 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.616e-05/0.009624, allocations: 16.38 kB / 259.1 MB, free: 15.39 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.009634, allocations: 11.94 kB / 259.1 MB, free: 15.38 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002614/0.009895, allocations: 222.7 kB / 259.3 MB, free: 15.16 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001235/0.01113, allocations: 0.9919 MB / 260.3 MB, free: 14.12 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000351/0.01148, allocations: 232.8 kB / 260.5 MB, free: 13.88 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000133/0.01161, allocations: 124.4 kB / 260.7 MB, free: 13.75 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.041e-05/0.01164, allocations: 8.375 kB / 260.7 MB, free: 13.75 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.057e-05/0.01167, allocations: 37.77 kB / 260.7 MB, free: 13.7 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.573e-06/0.01167, allocations: 0 / 260.7 MB, free: 13.7 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.001966/0.01363, allocations: 1.349 MB / 262.1 MB, free: 12.28 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.652e-05/0.01366, allocations: 59.91 kB / 262.1 MB, free: 12.21 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001532/0.01381, allocations: 284.2 kB / 262.4 MB, free: 11.91 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.49e-05/0.01385, allocations: 41.7 kB / 262.4 MB, free: 11.87 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.501e-05/0.01394, allocations: 223.6 kB / 262.6 MB, free: 11.64 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.627e-05/0.01404, allocations: 174.5 kB / 262.8 MB, free: 11.47 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/0.01415, allocations: 107.9 kB / 262.9 MB, free: 11.36 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.01428, allocations: 0.5156 MB / 263.4 MB, free: 10.83 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000144/0.01442, allocations: 109.2 kB / 263.5 MB, free: 10.73 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002039/0.01462, allocations: 197 kB / 263.7 MB, free: 10.51 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000354/0.01498, allocations: 255.9 kB / 264 MB, free: 10.23 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.01498, allocations: 4 kB / 264 MB, free: 10.23 MB / 250.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0006256/0.01561, allocations: 0.5001 MB / 264.5 MB, free: 9.711 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.01562, allocations: 4 kB / 264.5 MB, free: 9.707 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.01563, allocations: 8.062 kB / 264.5 MB, free: 9.699 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006269/0.01625, allocations: 474.6 kB / 265 MB, free: 9.223 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.0164, allocations: 67.91 kB / 265 MB, free: 9.156 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002065/0.01847, allocations: 4.412 MB / 269.4 MB, free: 4.488 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001874/0.01865, allocations: 56.16 kB / 269.5 MB, free: 4.434 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.407e-05/0.01868, allocations: 12 kB / 269.5 MB, free: 4.422 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.0001416/0.01882, allocations: 192.4 kB / 269.7 MB, free: 4.223 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.434e-05/0.01888, allocations: 51.75 kB / 269.7 MB, free: 4.172 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006193/0.0195, allocations: 0.4963 MB / 270.2 MB, free: 3.652 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.01951, allocations: 4 kB / 270.2 MB, free: 3.648 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.01951, allocations: 4 kB / 270.3 MB, free: 3.645 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.01952, allocations: 0 / 270.3 MB, free: 3.645 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009746/0.02049, allocations: 0.8695 MB / 271.1 MB, free: 2.734 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.02049, allocations: 4 kB / 271.1 MB, free: 2.73 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00013/0.02062, allocations: 47.92 kB / 271.2 MB, free: 2.684 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005315/0.02116, allocations: 466.5 kB / 271.6 MB, free: 2.215 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.239e-05/0.02119, allocations: 27.91 kB / 271.7 MB, free: 2.188 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00187/0.02306, allocations: 4.409 MB / 276.1 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.02306, allocations: 0 / 276.1 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007604/0.02382, allocations: 0.7235 MB / 276.8 MB, free: 12.76 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001226/0.02394, allocations: 83.62 kB / 276.9 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.29e-05/0.02398, allocations: 20 kB / 276.9 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001671/0.02415, allocations: 47.94 kB / 276.9 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/0.02429, allocations: 96.3 kB / 277 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.225e-05/0.02431, allocations: 19.98 kB / 277.1 MB, free: 12.5 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.89e-05/0.0244, allocations: 189.1 kB / 277.2 MB, free: 12.31 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0244, allocations: 3.938 kB / 277.2 MB, free: 12.31 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004734/0.02487, allocations: 124 kB / 277.4 MB, free: 12.19 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.0002827/0.02515, allocations: 142.7 kB / 277.5 MB, free: 12.04 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009808/0.02613, allocations: 0.6918 MB / 278.2 MB, free: 11.31 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.02614, allocations: 0 / 278.2 MB, free: 11.31 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004743/0.02661, allocations: 0.5562 MB / 278.7 MB, free: 10.72 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004161/0.02703, allocations: 92.2 kB / 278.8 MB, free: 10.63 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001338/0.02836, allocations: 0.8414 MB / 279.7 MB, free: 9.754 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.742e-05/0.02843, allocations: 105.3 kB / 279.8 MB, free: 9.633 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.597e-05/0.02852, allocations: 34.95 kB / 279.8 MB, free: 9.602 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00015/0.02867, allocations: 130.2 kB / 279.9 MB, free: 9.473 MB / 266.7 MB Notification: Performance of SimCode: time 7.61e-07/0.02867, allocations: 4 kB / 279.9 MB, free: 9.469 MB / 266.7 MB Notification: Performance of Templates: time 0.01264/0.04131, allocations: 9.484 MB / 289.4 MB, free: 4 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.8600942348130047]