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.001943/0.001943, allocations: 84.3 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001431/0.001431, allocations: 170.7 kB / 23.95 MB, free: 4.172 MB / 14.72 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 1.43/1.43, allocations: 177.1 MB / 204.3 MB, free: 9.16 MB / 190.1 MB " [Timeout remaining time 178] 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.202e-06/1.202e-06, allocations: 0 / 325 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.85e-05/1.97e-05, allocations: 5.797 kB / 325.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004353/0.004372, allocations: 2.796 MB / 327.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002016/0.006389, allocations: 1.015 MB / 328.9 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001657/0.006554, allocations: 5.188 kB / 328.9 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003221/0.006876, allocations: 79.19 kB / 328.9 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004189/0.007295, allocations: 168.8 kB / 329.1 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004449/0.00774, allocations: 194.8 kB / 329.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007327/0.008473, allocations: 0.6151 MB / 329.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001997/0.008672, allocations: 71.75 kB / 330 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005048/0.009177, allocations: 364.7 kB / 330.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003968/0.009574, allocations: 238.1 kB / 330.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.616e-05/0.00966, allocations: 46.88 kB / 330.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002067/0.009867, allocations: 108.5 kB / 330.7 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001937/0.01006, allocations: 136 kB / 330.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002326/0.01029, allocations: 170.5 kB / 331 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007927/0.01109, allocations: 0.6175 MB / 331.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.01109, allocations: 0 / 331.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.01109, allocations: 1.062 kB / 331.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.0111, allocations: 0 / 331.6 MB, free: 12.42 MB / 302.1 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.00164/0.01274, allocations: 0.7062 MB / 332.4 MB, free: 11.85 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.099e-05/0.01277, allocations: 8.906 kB / 332.4 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001208/0.01289, allocations: 47.88 kB / 332.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004579/0.01335, allocations: 269 kB / 332.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.746e-05/0.01339, allocations: 32.56 kB / 332.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.794e-05/0.01347, allocations: 36.19 kB / 332.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009569/0.01443, allocations: 433 kB / 333.2 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.323e-05/0.01445, allocations: 6.484 kB / 333.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.285e-05/0.01451, allocations: 18.53 kB / 333.2 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.685e-05/0.01452, allocations: 12.97 kB / 333.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001082/0.01561, allocations: 438.1 kB / 333.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002484/0.01809, allocations: 1.074 MB / 334.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009792/0.01907, allocations: 380.5 kB / 335.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005384/0.01961, allocations: 226.9 kB / 335.3 MB, free: 9.922 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.796e-05/0.01966, allocations: 6.156 kB / 335.3 MB, free: 9.922 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.356e-05/0.01969, allocations: 41.27 kB / 335.3 MB, free: 9.875 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.013e-06/0.01969, allocations: 0 / 335.3 MB, free: 9.875 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.006044/0.02573, allocations: 1.964 MB / 337.3 MB, free: 8.711 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.115e-05/0.02579, allocations: 55.91 kB / 337.4 MB, free: 8.645 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003262/0.02611, allocations: 261.9 kB / 337.6 MB, free: 8.383 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.241e-05/0.02618, allocations: 45.7 kB / 337.7 MB, free: 8.332 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.02631, allocations: 168.9 kB / 337.8 MB, free: 8.164 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001796/0.02649, allocations: 202.3 kB / 338 MB, free: 7.965 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000188/0.02668, allocations: 98.33 kB / 338.1 MB, free: 7.863 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.02686, allocations: 350.7 kB / 338.5 MB, free: 7.512 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005281/0.02739, allocations: 217.2 kB / 338.7 MB, free: 7.301 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006044/0.02799, allocations: 292.1 kB / 339 MB, free: 6.996 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009249/0.02892, allocations: 399 kB / 339.3 MB, free: 6.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.02892, allocations: 0 / 339.3 MB, free: 6.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001753/0.03067, allocations: 0.7105 MB / 340.1 MB, free: 5.863 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.03069, allocations: 11.94 kB / 340.1 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.0307, allocations: 128 / 340.1 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001177/0.03188, allocations: 434.2 kB / 340.5 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002943/0.03217, allocations: 63.84 kB / 340.6 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003564/0.03573, allocations: 3.396 MB / 343.9 MB, free: 1.727 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005557/0.03629, allocations: 80.3 kB / 344 MB, free: 1.648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.452e-05/0.03634, allocations: 20 kB / 344 MB, free: 1.629 MB / 302.1 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.0002499/0.03659, allocations: 166.3 kB / 344.2 MB, free: 1.457 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.0367, allocations: 39.77 kB / 344.2 MB, free: 1.418 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001775/0.03847, allocations: 0.6991 MB / 344.9 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.03848, allocations: 8 kB / 345 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.03849, allocations: 0 / 345 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.03849, allocations: 7.922 kB / 345 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002526/0.04102, allocations: 1.116 MB / 346.1 MB, free: 15.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/0.04103, allocations: 7.938 kB / 346.1 MB, free: 15.51 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003162/0.04134, allocations: 55.91 kB / 346.1 MB, free: 15.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001056/0.0424, allocations: 406.2 kB / 346.5 MB, free: 15.05 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.695e-05/0.04246, allocations: 23.97 kB / 346.6 MB, free: 15.03 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003456/0.04591, allocations: 3.355 MB / 349.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.04591, allocations: 0 / 349.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002226/0.04814, allocations: 1.004 MB / 350.9 MB, free: 10.42 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002159/0.04836, allocations: 87.72 kB / 351 MB, free: 10.33 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.156e-05/0.04845, allocations: 24.09 kB / 351 MB, free: 10.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005371/0.04898, allocations: 67.91 kB / 351.1 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002477/0.04923, allocations: 100.2 kB / 351.2 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.152e-05/0.04928, allocations: 23.98 kB / 351.2 MB, free: 10.12 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002292/0.04951, allocations: 189.2 kB / 351.4 MB, free: 9.938 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.04951, allocations: 0 / 351.4 MB, free: 9.938 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005374/0.05005, allocations: 120 kB / 351.5 MB, free: 9.82 MB / 318.1 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.001559/0.05161, allocations: 408 kB / 351.9 MB, free: 9.566 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001691/0.0533, allocations: 0.7558 MB / 352.7 MB, free: 8.785 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.0533, allocations: 0 / 352.7 MB, free: 8.785 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009971/0.0543, allocations: 0.5184 MB / 353.2 MB, free: 8.242 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005984/0.0549, allocations: 77.25 kB / 353.3 MB, free: 8.172 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00211/0.05701, allocations: 0.9166 MB / 354.2 MB, free: 7.23 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002611/0.05727, allocations: 204.2 kB / 354.4 MB, free: 7 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001428/0.05741, allocations: 39.27 kB / 354.4 MB, free: 6.961 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.05752, allocations: 36.48 kB / 354.5 MB, free: 6.926 MB / 318.1 MB Notification: Performance of SimCode: time 3.61e-07/0.05752, allocations: 0 / 354.5 MB, free: 6.926 MB / 318.1 MB Notification: Performance of Templates: time 0.01665/0.07417, allocations: 8.748 MB / 363.2 MB, free: 14.25 MB / 334.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.581547427922487]