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.0007772/0.0007772, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00113/0.001908, allocations: 449.7 kB / 10.37 MB, free: 332 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.0006629/0.0006629, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000928/0.001591, allocations: 459.6 kB / 11.69 MB, free: 2.48 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.9439/0.9439, allocations: 173.4 MB / 185.8 MB, free: 8.984 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08924/1.033, allocations: 52.49 MB / 238.3 MB, free: 4.434 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.543e-06/1.543e-06, allocations: 0 / 239.5 MB, free: 3.191 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.024e-05/2.178e-05, allocations: 2.312 kB / 239.5 MB, free: 3.188 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003267/0.003289, allocations: 2.841 MB / 242.4 MB, free: 340 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001284/0.004573, allocations: 0.9112 MB / 243.3 MB, free: 15.41 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001235/0.004697, allocations: 11.94 kB / 243.3 MB, free: 15.4 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001395/0.004836, allocations: 55.45 kB / 243.4 MB, free: 15.35 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001663/0.005003, allocations: 115 kB / 243.5 MB, free: 15.23 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003231/0.005326, allocations: 211.5 kB / 243.7 MB, free: 15.03 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003786/0.005704, allocations: 0.581 MB / 244.3 MB, free: 14.45 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001468/0.005851, allocations: 75.03 kB / 244.3 MB, free: 14.36 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004455/0.006297, allocations: 379.1 kB / 244.7 MB, free: 13.99 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002079/0.006504, allocations: 227.4 kB / 244.9 MB, free: 13.77 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.497e-05/0.006549, allocations: 44 kB / 245 MB, free: 13.73 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001531/0.006702, allocations: 99.94 kB / 245.1 MB, free: 13.63 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.286e-05/0.006775, allocations: 75.75 kB / 245.1 MB, free: 13.55 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.805e-05/0.006873, allocations: 115.8 kB / 245.3 MB, free: 13.44 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003587/0.007232, allocations: 366.8 kB / 245.6 MB, free: 13.08 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.396e-05/0.007246, allocations: 3.984 kB / 245.6 MB, free: 13.08 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.007247, allocations: 0 / 245.6 MB, free: 13.08 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.369e-05/0.007261, allocations: 4 kB / 245.6 MB, free: 13.07 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.0007494/0.00801, allocations: 0.6985 MB / 246.3 MB, free: 12.35 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.743e-05/0.008037, allocations: 8.031 kB / 246.3 MB, free: 12.34 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.16e-05/0.008109, allocations: 64.89 kB / 246.4 MB, free: 12.28 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000227/0.008336, allocations: 212.6 kB / 246.6 MB, free: 12.05 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.836e-05/0.008364, allocations: 29.38 kB / 246.6 MB, free: 12.02 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.633e-05/0.008411, allocations: 36.33 kB / 246.7 MB, free: 11.98 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003533/0.008764, allocations: 323.5 kB / 247 MB, free: 11.66 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.008776, allocations: 4.188 kB / 247 MB, free: 11.65 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.512e-05/0.008801, allocations: 20.36 kB / 247 MB, free: 11.63 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.008809, allocations: 11.94 kB / 247 MB, free: 11.62 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002223/0.009031, allocations: 182.8 kB / 247.2 MB, free: 11.45 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001007/0.01004, allocations: 0.7663 MB / 248 MB, free: 10.64 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006067/0.01065, allocations: 216.2 kB / 248.2 MB, free: 10.42 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000117/0.01076, allocations: 109.3 kB / 248.3 MB, free: 10.31 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.954e-05/0.01079, allocations: 9.125 kB / 248.3 MB, free: 10.3 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.165e-05/0.01081, allocations: 38.5 kB / 248.3 MB, free: 10.26 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.673e-06/0.01082, allocations: 0 / 248.3 MB, free: 10.26 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.001928/0.01274, allocations: 1.267 MB / 249.6 MB, free: 8.93 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.422e-05/0.01277, allocations: 55.91 kB / 249.6 MB, free: 8.863 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001282/0.0129, allocations: 232.9 kB / 249.9 MB, free: 8.621 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.156e-05/0.01293, allocations: 41.7 kB / 249.9 MB, free: 8.574 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.477e-05/0.01299, allocations: 160.9 kB / 250.1 MB, free: 8.414 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.427e-05/0.01309, allocations: 170.6 kB / 250.2 MB, free: 8.246 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001093/0.0132, allocations: 94.23 kB / 250.3 MB, free: 8.148 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.715e-05/0.01329, allocations: 350.7 kB / 250.7 MB, free: 7.797 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001267/0.01342, allocations: 105.2 kB / 250.8 MB, free: 7.695 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001358/0.01355, allocations: 160.1 kB / 250.9 MB, free: 7.52 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002122/0.01377, allocations: 238.9 kB / 251.2 MB, free: 7.27 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.01377, allocations: 4 kB / 251.2 MB, free: 7.266 MB / 250.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0004798/0.01425, allocations: 412.8 kB / 251.6 MB, free: 6.844 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.01427, allocations: 7.938 kB / 251.6 MB, free: 6.836 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.01427, allocations: 4 kB / 251.6 MB, free: 6.832 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005678/0.01484, allocations: 438.3 kB / 252 MB, free: 6.395 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001603/0.015, allocations: 83.83 kB / 252.1 MB, free: 6.312 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00175/0.01675, allocations: 3.035 MB / 255.1 MB, free: 3.082 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001765/0.01693, allocations: 51.94 kB / 255.2 MB, free: 3.031 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.315e-05/0.01695, allocations: 12 kB / 255.2 MB, free: 3.02 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.0001205/0.01707, allocations: 152.4 kB / 255.3 MB, free: 2.859 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.245e-05/0.01712, allocations: 43.84 kB / 255.4 MB, free: 2.816 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004766/0.0176, allocations: 416.8 kB / 255.8 MB, free: 2.391 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.0176, allocations: 4 kB / 255.8 MB, free: 2.387 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.01761, allocations: 4 kB / 255.8 MB, free: 2.383 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.01761, allocations: 7.984 kB / 255.8 MB, free: 2.375 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007381/0.01835, allocations: 0.6558 MB / 256.5 MB, free: 1.688 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.01835, allocations: 0 / 256.5 MB, free: 1.688 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001402/0.01849, allocations: 59.97 kB / 256.5 MB, free: 1.629 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.01e-05/0.01858, allocations: 59.61 kB / 256.6 MB, free: 1.57 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004692/0.01905, allocations: 438.2 kB / 257 MB, free: 1.133 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.273e-05/0.01908, allocations: 19.98 kB / 257 MB, free: 1.113 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001287/0.02036, allocations: 3.009 MB / 260 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.02036, allocations: 0 / 260 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005484/0.02091, allocations: 0.5714 MB / 260.6 MB, free: 13.31 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.299e-05/0.02096, allocations: 20.16 kB / 260.6 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001558/0.02111, allocations: 47.94 kB / 260.7 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.02123, allocations: 92.31 kB / 260.8 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.987e-05/0.02125, allocations: 11.98 kB / 260.8 MB, free: 13.14 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.484e-05/0.0213, allocations: 78.77 kB / 260.8 MB, free: 13.06 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.0213, allocations: 0 / 260.8 MB, free: 13.06 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003033/0.02161, allocations: 127.9 kB / 261 MB, free: 12.94 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.0001733/0.02178, allocations: 124.3 kB / 261.1 MB, free: 12.81 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005616/0.02234, allocations: 0.5469 MB / 261.6 MB, free: 12.23 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/0.02235, allocations: 8.25 kB / 261.7 MB, free: 12.23 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003292/0.02268, allocations: 444.3 kB / 262.1 MB, free: 11.77 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003124/0.02299, allocations: 128.2 kB / 262.2 MB, free: 11.64 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003272/0.02626, allocations: 0.7675 MB / 263 MB, free: 10.84 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.277e-05/0.02633, allocations: 105.3 kB / 263.1 MB, free: 10.72 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.074e-05/0.02642, allocations: 35.09 kB / 263.1 MB, free: 10.68 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001591/0.02658, allocations: 111.3 kB / 263.2 MB, free: 10.57 MB / 266.7 MB Notification: Performance of SimCode: time 1.212e-06/0.02658, allocations: 3.938 kB / 263.2 MB, free: 10.57 MB / 266.7 MB Notification: Performance of Templates: time 0.01129/0.03787, allocations: 9.534 MB / 272.8 MB, free: 1.133 MB / 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8247036524116993]