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.001614/0.001614, allocations: 110.3 kB / 21.17 MB, free: 0.7812 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.001863/0.001863, allocations: 209.4 kB / 24.46 MB, free: 4.359 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.481/1.481, allocations: 230.4 MB / 258.1 MB, free: 8.148 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.00305/0.00305, allocations: 75.83 kB / 378.7 MB, free: 2.941 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.3453, allocations: 53.32 MB / 432 MB, free: 7.418 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.00833/0.3536, allocations: 2.981 MB / 435 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003685/0.3573, allocations: 1.064 MB / 436.1 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003526/0.3577, allocations: 12 kB / 436.1 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005033/0.3582, allocations: 79.3 kB / 436.2 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000696/0.3589, allocations: 158.8 kB / 436.3 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006974/0.3596, allocations: 195.6 kB / 436.5 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001082/0.3606, allocations: 0.5931 MB / 437.1 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002878/0.3609, allocations: 78.69 kB / 437.2 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000562/0.3615, allocations: 263.2 kB / 437.4 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006813/0.3622, allocations: 290.9 kB / 437.7 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001315/0.3623, allocations: 48 kB / 437.8 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003124/0.3626, allocations: 107.9 kB / 437.9 MB, free: 1.543 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002577/0.3629, allocations: 131.6 kB / 438 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003745/0.3632, allocations: 226.9 kB / 438.2 MB, free: 1.191 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001113/0.3644, allocations: 0.5891 MB / 438.8 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.3644, allocations: 4 kB / 438.8 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3644, allocations: 0 / 438.8 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.258e-06/0.3644, allocations: 0 / 438.8 MB, free: 0.5977 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.00271/0.3671, allocations: 0.7869 MB / 439.6 MB, free: 15.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.45e-05/0.3671, allocations: 8.031 kB / 439.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002/0.3673, allocations: 48.66 kB / 439.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009085/0.3682, allocations: 326.6 kB / 440 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.531e-05/0.3683, allocations: 33.31 kB / 440 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001495/0.3684, allocations: 36.38 kB / 440.1 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001661/0.3701, allocations: 446.6 kB / 440.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.322e-05/0.3701, allocations: 3.953 kB / 440.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.572e-05/0.3702, allocations: 16 kB / 440.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.735e-05/0.3702, allocations: 8 kB / 440.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002061/0.3723, allocations: 451.6 kB / 441 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004542/0.3768, allocations: 1.27 MB / 442.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001736/0.3786, allocations: 372.3 kB / 442.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009686/0.3796, allocations: 234.1 kB / 442.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.457e-05/0.3796, allocations: 8.422 kB / 442.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.715e-05/0.3797, allocations: 35 kB / 442.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 5.189e-06/0.3797, allocations: 4 kB / 442.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.009924/0.3896, allocations: 2.253 MB / 445.1 MB, free: 9.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.81e-05/0.3897, allocations: 59.78 kB / 445.2 MB, free: 9.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004762/0.3901, allocations: 270.6 kB / 445.4 MB, free: 9.641 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001028/0.3902, allocations: 49.69 kB / 445.5 MB, free: 9.586 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001648/0.3904, allocations: 165 kB / 445.7 MB, free: 9.422 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002491/0.3907, allocations: 190.5 kB / 445.8 MB, free: 9.234 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002943/0.3909, allocations: 106.1 kB / 445.9 MB, free: 9.125 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000247/0.3912, allocations: 346.8 kB / 446.3 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009318/0.3921, allocations: 221 kB / 446.5 MB, free: 8.559 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001015/0.3931, allocations: 287.2 kB / 446.8 MB, free: 8.266 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001548/0.3947, allocations: 399.7 kB / 447.2 MB, free: 7.855 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.409e-06/0.3947, allocations: 0 / 447.2 MB, free: 7.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.003012/0.3977, allocations: 0.7198 MB / 447.9 MB, free: 7.117 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.274e-05/0.3977, allocations: 8 kB / 447.9 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.3978, allocations: 0 / 447.9 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001913/0.3997, allocations: 434.2 kB / 448.3 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005122/0.4002, allocations: 63.91 kB / 448.4 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005339/0.4055, allocations: 3.657 MB / 452 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009457/0.4065, allocations: 75.91 kB / 452.1 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.647e-05/0.4065, allocations: 19.98 kB / 452.1 MB, free: 2.562 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.0003851/0.4069, allocations: 170.4 kB / 452.3 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001545/0.4071, allocations: 43.75 kB / 452.3 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002527/0.4096, allocations: 0.7083 MB / 453 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.4096, allocations: 8 kB / 453.1 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.4096, allocations: 0 / 453.1 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.253e-05/0.4096, allocations: 3.984 kB / 453.1 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003634/0.4133, allocations: 1.274 MB / 454.3 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/0.4133, allocations: 3.984 kB / 454.3 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004422/0.4137, allocations: 55.97 kB / 454.4 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001514/0.4152, allocations: 410.1 kB / 454.8 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.135e-05/0.4153, allocations: 19.97 kB / 454.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00455/0.4199, allocations: 3.614 MB / 458.4 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.4199, allocations: 0 / 458.4 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003504/0.4234, allocations: 1.014 MB / 459.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004058/0.4238, allocations: 168.8 kB / 459.6 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001377/0.4239, allocations: 12 kB / 459.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008222/0.4247, allocations: 79.91 kB / 459.7 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003475/0.4251, allocations: 92.34 kB / 459.8 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000128/0.4252, allocations: 23.98 kB / 459.8 MB, free: 10.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003364/0.4255, allocations: 190 kB / 460 MB, free: 10.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4255, allocations: 4 kB / 460 MB, free: 10.24 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008467/0.4264, allocations: 116 kB / 460.1 MB, free: 10.13 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.001966/0.4283, allocations: 399.6 kB / 460.5 MB, free: 9.875 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002679/0.431, allocations: 0.7574 MB / 461.3 MB, free: 9.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.431, allocations: 0 / 461.3 MB, free: 9.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001488/0.4325, allocations: 0.5113 MB / 461.8 MB, free: 8.555 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008672/0.4334, allocations: 68.5 kB / 461.8 MB, free: 8.484 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003532/0.4369, allocations: 1.023 MB / 462.9 MB, free: 7.438 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006893/0.4376, allocations: 0.8046 MB / 463.7 MB, free: 6.602 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002469/0.4379, allocations: 43.27 kB / 463.7 MB, free: 6.559 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001643/0.438, allocations: 39.36 kB / 463.7 MB, free: 6.52 MB / 366.1 MB Notification: Performance of SimCode: time 7.41e-07/0.438, allocations: 0 / 463.7 MB, free: 6.52 MB / 366.1 MB Notification: Performance of Templates: time 0.03212/0.4701, allocations: 10.51 MB / 474.3 MB, free: 12.07 MB / 382.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 -s cvode -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: 4.982258609030396]