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 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001522/0.001522, allocations: 116.8 kB / 19.18 MB, free: 3.762 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001649/0.001649, allocations: 210.6 kB / 22.13 MB, free: 0.8125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.45/1.45, allocations: 230.4 MB / 255.4 MB, free: 15 MB / 206.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-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] "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.001881/0.001881, allocations: 63.88 kB / 374.7 MB, free: 9.754 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1031, allocations: 53.3 MB / 428 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004711/0.1078, allocations: 2.974 MB / 431 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002128/0.1099, allocations: 1.056 MB / 432.1 MB, free: 312 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002052/0.1101, allocations: 7.938 kB / 432.1 MB, free: 304 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003414/0.1104, allocations: 79.3 kB / 432.2 MB, free: 224 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004192/0.1109, allocations: 158.9 kB / 432.3 MB, free: 64 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1794/0.2902, allocations: 182.3 kB / 432.5 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007348/0.291, allocations: 0.5963 MB / 433.1 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000195/0.2912, allocations: 83.64 kB / 433.2 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002933/0.2915, allocations: 268.6 kB / 433.4 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003447/0.2918, allocations: 290.7 kB / 433.7 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.523e-05/0.2919, allocations: 46.34 kB / 433.8 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002103/0.2921, allocations: 103 kB / 433.9 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001314/0.2922, allocations: 126.2 kB / 434 MB, free: 8.039 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001822/0.2924, allocations: 238.2 kB / 434.2 MB, free: 7.977 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000537/0.2929, allocations: 0.5849 MB / 434.8 MB, free: 7.891 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.293, allocations: 1.266 kB / 434.8 MB, free: 7.891 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.293, allocations: 1.062 kB / 434.8 MB, free: 7.891 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.293, allocations: 3.094 kB / 434.8 MB, free: 7.891 MB / 350.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.001331/0.2943, allocations: 0.7873 MB / 435.6 MB, free: 7.379 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.182e-05/0.2943, allocations: 8.656 kB / 435.6 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001055/0.2944, allocations: 49.59 kB / 435.6 MB, free: 7.355 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003795/0.2948, allocations: 323.1 kB / 436 MB, free: 7.117 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.607e-05/0.2948, allocations: 30.25 kB / 436 MB, free: 7.117 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.192e-05/0.2949, allocations: 39.91 kB / 436 MB, free: 7.117 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008447/0.2958, allocations: 442.3 kB / 436.5 MB, free: 7.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.435e-05/0.2958, allocations: 12.75 kB / 436.5 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.451e-05/0.2958, allocations: 15.22 kB / 436.5 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.2958, allocations: 8.219 kB / 436.5 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009482/0.2968, allocations: 444 kB / 436.9 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002201/0.299, allocations: 1.277 MB / 438.2 MB, free: 6.641 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008629/0.2999, allocations: 382.6 kB / 438.6 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004643/0.3003, allocations: 232.3 kB / 438.8 MB, free: 6.414 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.831e-05/0.3004, allocations: 5.5 kB / 438.8 MB, free: 6.414 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.492e-05/0.3004, allocations: 37.89 kB / 438.9 MB, free: 6.371 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.823e-06/0.3004, allocations: 1.375 kB / 438.9 MB, free: 6.371 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005428/0.3058, allocations: 2.247 MB / 441.1 MB, free: 5.121 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.62e-05/0.3058, allocations: 58.41 kB / 441.2 MB, free: 5.059 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002785/0.3061, allocations: 280.9 kB / 441.4 MB, free: 4.898 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.953e-05/0.3062, allocations: 41.23 kB / 441.5 MB, free: 4.859 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.832e-05/0.3063, allocations: 173.9 kB / 441.6 MB, free: 4.707 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001166/0.3064, allocations: 190.5 kB / 441.8 MB, free: 4.566 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001673/0.3065, allocations: 100.1 kB / 441.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.505e-05/0.3066, allocations: 342.4 kB / 442.3 MB, free: 4.188 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000481/0.3071, allocations: 218.9 kB / 442.5 MB, free: 4.102 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005145/0.3076, allocations: 291.5 kB / 442.8 MB, free: 3.957 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008326/0.3084, allocations: 397.7 kB / 443.1 MB, free: 3.762 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3084, allocations: 1.062 kB / 443.1 MB, free: 3.762 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001526/0.31, allocations: 0.7137 MB / 443.9 MB, free: 3.453 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.31, allocations: 10.17 kB / 443.9 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.31, allocations: 1.219 kB / 443.9 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001084/0.3111, allocations: 427.3 kB / 444.3 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002682/0.3113, allocations: 71.02 kB / 444.4 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002343/0.3137, allocations: 3.646 MB / 448 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005696/0.3142, allocations: 75.98 kB / 448.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.686e-05/0.3143, allocations: 19.67 kB / 448.1 MB, free: 15.79 MB / 366.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.0002605/0.3146, allocations: 170.4 kB / 448.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.3147, allocations: 38.45 kB / 448.3 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001757/0.3164, allocations: 0.7122 MB / 449 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.817e-06/0.3164, allocations: 8.688 kB / 449 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.3164, allocations: 2.562 kB / 449 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.3164, allocations: 3.281 kB / 449 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002422/0.3189, allocations: 1.271 MB / 450.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.3189, allocations: 3.938 kB / 450.3 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002792/0.3191, allocations: 57.81 kB / 450.4 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009935/0.3201, allocations: 408.6 kB / 450.8 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.518e-05/0.3202, allocations: 21.55 kB / 450.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003325/0.3235, allocations: 3.624 MB / 454.4 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/0.3235, allocations: 0 / 454.4 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002153/0.3257, allocations: 1.013 MB / 455.4 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002529/0.3259, allocations: 165.4 kB / 455.6 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.447e-05/0.326, allocations: 17.59 kB / 455.6 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004924/0.3265, allocations: 66.12 kB / 455.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002677/0.3268, allocations: 99.22 kB / 455.8 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.827e-05/0.3268, allocations: 25.47 kB / 455.8 MB, free: 10.31 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002295/0.327, allocations: 191.5 kB / 456 MB, free: 10.2 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.327, allocations: 0 / 456 MB, free: 10.2 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005412/0.3276, allocations: 118 kB / 456.1 MB, free: 10.18 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.001308/0.3289, allocations: 400.8 kB / 456.5 MB, free: 10.03 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001703/0.3306, allocations: 0.7578 MB / 457.2 MB, free: 9.633 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.3306, allocations: 0 / 457.2 MB, free: 9.633 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009756/0.3316, allocations: 0.5105 MB / 457.7 MB, free: 9.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005836/0.3322, allocations: 80.06 kB / 457.8 MB, free: 9.285 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002133/0.3343, allocations: 1.051 MB / 458.9 MB, free: 8.652 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004779/0.3348, allocations: 0.8096 MB / 459.7 MB, free: 7.941 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/0.3349, allocations: 38.34 kB / 459.7 MB, free: 7.93 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3349, allocations: 0 / 459.7 MB, free: 7.93 MB / 366.1 MB Notification: Performance of Templates: time 0.01328/0.3482, allocations: 9.506 MB / 469.2 MB, free: 3.633 MB / 366.1 MB " [Timeout remaining time 660] 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.437917358009145]