Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001697/0.001697, allocations: 113.4 kB / 18.79 MB, free: 3.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001986/0.001986, allocations: 215.1 kB / 19.8 MB, free: 2.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.429/1.429, allocations: 230.4 MB / 251.1 MB, free: 8.434 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 67.83 kB / 368.9 MB, free: 6.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2582/0.2602, allocations: 53.32 MB / 422.3 MB, free: 7.805 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004467/0.2646, allocations: 2.965 MB / 425.2 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001911/0.2665, allocations: 1.048 MB / 426.3 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001684/0.2667, allocations: 11.94 kB / 426.3 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002816/0.267, allocations: 79.34 kB / 426.4 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003443/0.2673, allocations: 162.8 kB / 426.5 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000399/0.2677, allocations: 183.7 kB / 426.7 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00062/0.2683, allocations: 0.5969 MB / 427.3 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001921/0.2685, allocations: 90.69 kB / 427.4 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003217/0.2689, allocations: 263.2 kB / 427.6 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004163/0.2693, allocations: 294.9 kB / 427.9 MB, free: 2.102 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.861e-05/0.2694, allocations: 48 kB / 428 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001845/0.2696, allocations: 99.98 kB / 428.1 MB, free: 1.957 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001719/0.2697, allocations: 131.6 kB / 428.2 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00024/0.27, allocations: 234.8 kB / 428.4 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007082/0.2707, allocations: 0.5833 MB / 429 MB, free: 1.016 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2707, allocations: 0 / 429 MB, free: 1.016 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.809e-06/0.2707, allocations: 3.984 kB / 429 MB, free: 1.012 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.2707, allocations: 7.938 kB / 429 MB, free: 1.004 MB / 334.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.001582/0.2723, allocations: 0.7859 MB / 429.8 MB, free: 172 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.2723, allocations: 8.031 kB / 429.8 MB, free: 164 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001305/0.2724, allocations: 48.66 kB / 429.9 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000582/0.273, allocations: 326.6 kB / 430.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.657e-05/0.2731, allocations: 33.31 kB / 430.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.095e-05/0.2732, allocations: 36.38 kB / 430.3 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009199/0.2741, allocations: 442.6 kB / 430.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.373e-05/0.2741, allocations: 7.953 kB / 430.7 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.214e-05/0.2742, allocations: 16 kB / 430.7 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.2e-05/0.2742, allocations: 8 kB / 430.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001047/0.2752, allocations: 443.7 kB / 431.2 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002477/0.2777, allocations: 1.277 MB / 432.4 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009442/0.2786, allocations: 376.3 kB / 432.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005144/0.2791, allocations: 238.1 kB / 433 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.124e-05/0.2792, allocations: 4.438 kB / 433 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.699e-05/0.2792, allocations: 35 kB / 433.1 MB, free: 12.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.422e-06/0.2792, allocations: 4 kB / 433.1 MB, free: 12.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005647/0.2849, allocations: 2.245 MB / 435.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.276e-05/0.2849, allocations: 63.78 kB / 435.4 MB, free: 10.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003208/0.2852, allocations: 274.6 kB / 435.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.496e-05/0.2853, allocations: 45.7 kB / 435.7 MB, free: 9.992 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.2854, allocations: 165 kB / 435.9 MB, free: 9.824 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001739/0.2856, allocations: 190.5 kB / 436 MB, free: 9.637 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001934/0.2858, allocations: 102.2 kB / 436.1 MB, free: 9.531 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.286, allocations: 346.8 kB / 436.5 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005408/0.2865, allocations: 225 kB / 436.7 MB, free: 8.961 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005611/0.2871, allocations: 283.2 kB / 437 MB, free: 8.672 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008617/0.2879, allocations: 403.7 kB / 437.4 MB, free: 8.258 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2879, allocations: 0 / 437.4 MB, free: 8.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001677/0.2896, allocations: 0.7159 MB / 438.1 MB, free: 7.523 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.2896, allocations: 8 kB / 438.1 MB, free: 7.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.2896, allocations: 0 / 438.1 MB, free: 7.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001136/0.2908, allocations: 430.3 kB / 438.5 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002838/0.291, allocations: 63.89 kB / 438.6 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003512/0.2946, allocations: 3.658 MB / 442.2 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005402/0.2951, allocations: 80 kB / 442.3 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.696e-05/0.2951, allocations: 19.98 kB / 442.3 MB, free: 2.965 MB / 350.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.0002426/0.2954, allocations: 157.8 kB / 442.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.2955, allocations: 43.77 kB / 442.5 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001714/0.2972, allocations: 0.7044 MB / 443.2 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.2972, allocations: 12 kB / 443.2 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.2972, allocations: 7.922 kB / 443.3 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.2972, allocations: 0 / 443.3 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002463/0.2997, allocations: 1.274 MB / 444.5 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.2997, allocations: 4 kB / 444.5 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002915/0.3, allocations: 55.91 kB / 444.6 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001002/0.301, allocations: 405.6 kB / 445 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.958e-05/0.301, allocations: 23.98 kB / 445 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003328/0.3044, allocations: 3.615 MB / 448.6 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3044, allocations: 0 / 448.6 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002185/0.3065, allocations: 1.014 MB / 449.6 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002369/0.3068, allocations: 164.8 kB / 449.8 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.926e-05/0.3069, allocations: 16 kB / 449.8 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004916/0.3074, allocations: 75.91 kB / 449.9 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002357/0.3076, allocations: 92.34 kB / 450 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.641e-05/0.3076, allocations: 27.91 kB / 450 MB, free: 10.85 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002134/0.3079, allocations: 198 kB / 450.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3079, allocations: 0 / 450.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005178/0.3084, allocations: 119.9 kB / 450.3 MB, free: 10.54 MB / 366.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.001381/0.3098, allocations: 381.9 kB / 450.7 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001672/0.3114, allocations: 0.7612 MB / 451.4 MB, free: 9.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3114, allocations: 0 / 451.4 MB, free: 9.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009694/0.3124, allocations: 0.5191 MB / 452 MB, free: 8.957 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005687/0.313, allocations: 75.73 kB / 452 MB, free: 8.883 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002221/0.3152, allocations: 1.015 MB / 453.1 MB, free: 7.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004924/0.3157, allocations: 0.8085 MB / 453.9 MB, free: 7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001513/0.3158, allocations: 39.27 kB / 453.9 MB, free: 6.965 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.3159, allocations: 35.42 kB / 453.9 MB, free: 6.93 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3159, allocations: 4 kB / 453.9 MB, free: 6.926 MB / 366.1 MB Notification: Performance of Templates: time 0.0183/0.3342, allocations: 10.41 MB / 464.3 MB, free: 12.57 MB / 382.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches