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.000853/0.000853, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001044/0.001897, allocations: 445.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007153/0.0007153, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009783/0.001694, allocations: 463.6 kB / 11.71 MB, free: 2.453 MB / 13.93 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.97/0.97, allocations: 158.6 MB / 171.1 MB, free: 2.582 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1799/1.15, allocations: 49.48 MB / 220.5 MB, free: 1.445 MB / 218.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.322e-06/1.322e-06, allocations: 0 / 221.8 MB, free: 176 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.197e-05/2.329e-05, allocations: 6.109 kB / 221.8 MB, free: 172 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004822/0.004846, allocations: 2.839 MB / 224.7 MB, free: 13.3 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002322/0.007167, allocations: 0.9547 MB / 225.6 MB, free: 12.34 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002629/0.00743, allocations: 7.938 kB / 225.6 MB, free: 12.33 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002115/0.007642, allocations: 59.44 kB / 225.7 MB, free: 12.27 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003363/0.007978, allocations: 122.9 kB / 225.8 MB, free: 12.15 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006128/0.008591, allocations: 215.6 kB / 226 MB, free: 11.94 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006759/0.009267, allocations: 0.5732 MB / 226.6 MB, free: 11.37 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001972/0.009464, allocations: 78.97 kB / 226.7 MB, free: 11.29 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005131/0.009977, allocations: 371.2 kB / 227 MB, free: 10.93 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003367/0.01031, allocations: 227.4 kB / 227.3 MB, free: 10.7 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 8.515e-05/0.0104, allocations: 44 kB / 227.3 MB, free: 10.66 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002347/0.01063, allocations: 99.89 kB / 227.4 MB, free: 10.56 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00011/0.01074, allocations: 79.75 kB / 227.5 MB, free: 10.48 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001742/0.01092, allocations: 119.8 kB / 227.6 MB, free: 10.37 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000563/0.01148, allocations: 362.9 kB / 228 MB, free: 10.01 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.701e-05/0.0115, allocations: 0 / 228 MB, free: 10.01 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.0115, allocations: 0 / 228 MB, free: 10.01 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.933e-05/0.01152, allocations: 0 / 228 MB, free: 10.01 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.001242/0.01276, allocations: 0.7101 MB / 228.7 MB, free: 9.277 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.0128, allocations: 12.03 kB / 228.7 MB, free: 9.266 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001155/0.01292, allocations: 52.89 kB / 228.7 MB, free: 9.215 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00064/0.01356, allocations: 212.6 kB / 228.9 MB, free: 8.98 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.919e-05/0.0136, allocations: 29.38 kB / 229 MB, free: 8.953 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.416e-05/0.01367, allocations: 40.34 kB / 229 MB, free: 8.914 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006223/0.01429, allocations: 327.6 kB / 229.3 MB, free: 8.586 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.027e-05/0.01431, allocations: 192 / 229.3 MB, free: 8.586 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.994e-05/0.01435, allocations: 16.38 kB / 229.3 MB, free: 8.57 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.26e-05/0.01437, allocations: 11.94 kB / 229.3 MB, free: 8.559 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004169/0.01478, allocations: 178.8 kB / 229.5 MB, free: 8.383 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00182/0.0166, allocations: 0.7702 MB / 230.3 MB, free: 7.582 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005364/0.01714, allocations: 212.3 kB / 230.5 MB, free: 7.367 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002055/0.01734, allocations: 101.6 kB / 230.6 MB, free: 7.266 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.104e-05/0.01739, allocations: 9.125 kB / 230.6 MB, free: 7.258 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.065e-05/0.01742, allocations: 34.56 kB / 230.6 MB, free: 7.215 MB / 234.7 MB Notification: Performance of pre-optimization done (n=45): time 2.565e-06/0.01742, allocations: 0 / 230.6 MB, free: 7.215 MB / 234.7 MB Notification: Performance of matching and sorting (n=49): time 0.003424/0.02084, allocations: 1.282 MB / 231.9 MB, free: 5.871 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.563e-05/0.02088, allocations: 55.91 kB / 232 MB, free: 5.805 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002345/0.02111, allocations: 221 kB / 232.2 MB, free: 5.574 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 6.377e-05/0.02118, allocations: 45.69 kB / 232.2 MB, free: 5.523 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.02129, allocations: 160.9 kB / 232.4 MB, free: 5.359 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001487/0.02144, allocations: 186.5 kB / 232.6 MB, free: 5.176 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001807/0.02162, allocations: 98.23 kB / 232.7 MB, free: 5.074 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.02174, allocations: 342.7 kB / 233 MB, free: 4.73 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002129/0.02196, allocations: 97.27 kB / 233.1 MB, free: 4.637 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002388/0.02219, allocations: 156.1 kB / 233.3 MB, free: 4.465 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003965/0.02259, allocations: 250.8 kB / 233.5 MB, free: 4.203 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.02259, allocations: 4 kB / 233.5 MB, free: 4.199 MB / 234.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0008578/0.02345, allocations: 400.9 kB / 233.9 MB, free: 3.793 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.02348, allocations: 7.938 kB / 233.9 MB, free: 3.785 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.02349, allocations: 4 kB / 233.9 MB, free: 3.781 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009817/0.02447, allocations: 446.3 kB / 234.3 MB, free: 3.336 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002907/0.02476, allocations: 71.91 kB / 234.4 MB, free: 3.266 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002699/0.02746, allocations: 3.036 MB / 237.4 MB, free: 32 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003773/0.02784, allocations: 56.16 kB / 237.5 MB, free: 15.98 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.28e-05/0.02788, allocations: 12 kB / 237.5 MB, free: 15.96 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.0002035/0.02808, allocations: 140.5 kB / 237.7 MB, free: 15.82 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.02818, allocations: 47.89 kB / 237.7 MB, free: 15.77 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008026/0.02899, allocations: 416.9 kB / 238.1 MB, free: 15.35 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.02899, allocations: 4 kB / 238.1 MB, free: 15.34 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.029, allocations: 4 kB / 238.1 MB, free: 15.34 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.02901, allocations: 7.922 kB / 238.1 MB, free: 15.33 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001265/0.03027, allocations: 0.648 MB / 238.8 MB, free: 14.65 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.03027, allocations: 0 / 238.8 MB, free: 14.65 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002473/0.03052, allocations: 71.89 kB / 238.8 MB, free: 14.58 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001633/0.03069, allocations: 51.72 kB / 238.9 MB, free: 14.53 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008363/0.03152, allocations: 438.1 kB / 239.3 MB, free: 14.09 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.827e-05/0.03156, allocations: 15.97 kB / 239.3 MB, free: 14.08 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002261/0.03382, allocations: 3.009 MB / 242.3 MB, free: 10.87 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.03383, allocations: 8.219 kB / 242.4 MB, free: 10.86 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008546/0.03468, allocations: 0.5753 MB / 242.9 MB, free: 10.26 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.589e-05/0.03474, allocations: 16 kB / 242.9 MB, free: 10.25 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001849/0.03492, allocations: 47.94 kB / 243 MB, free: 10.2 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003232/0.03524, allocations: 96.3 kB / 243.1 MB, free: 10.11 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.12e-05/0.03527, allocations: 19.92 kB / 243.1 MB, free: 10.09 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.348e-05/0.03534, allocations: 78.77 kB / 243.2 MB, free: 10.01 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.03534, allocations: 0 / 243.2 MB, free: 10.01 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003361/0.03568, allocations: 131.9 kB / 243.3 MB, free: 9.879 MB / 250.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.0001781/0.03585, allocations: 120.3 kB / 243.4 MB, free: 9.75 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006007/0.03645, allocations: 0.5462 MB / 244 MB, free: 9.176 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.324e-05/0.03647, allocations: 4 kB / 244 MB, free: 9.172 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003207/0.03679, allocations: 440.3 kB / 244.4 MB, free: 8.715 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002781/0.03707, allocations: 120.6 kB / 244.5 MB, free: 8.598 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003353/0.04042, allocations: 0.7745 MB / 245.3 MB, free: 7.793 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.937e-05/0.04049, allocations: 105.3 kB / 245.4 MB, free: 7.668 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 9.974e-05/0.04059, allocations: 34.97 kB / 245.4 MB, free: 7.633 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001413/0.04073, allocations: 111.3 kB / 245.5 MB, free: 7.523 MB / 250.7 MB Notification: Performance of SimCode: time 9.82e-07/0.04073, allocations: 0 / 245.5 MB, free: 7.523 MB / 250.7 MB Notification: Performance of Templates: time 0.01146/0.05219, allocations: 9.54 MB / 255.1 MB, free: 13.99 MB / 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 -ignoreHideResult -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.7496293298900127]