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.006692/0.006692, allocations: 103.1 kB / 21.97 MB, free: 5.207 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.001765/0.001765, allocations: 224 kB / 25.3 MB, free: 3.211 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.456/1.456, allocations: 230.6 MB / 259 MB, free: 8.047 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.00197/0.00197, allocations: 71.89 kB / 379.8 MB, free: 2.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2718/0.2738, allocations: 53.36 MB / 433.2 MB, free: 6.996 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004884/0.2787, allocations: 2.989 MB / 436.1 MB, free: 4 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002004/0.2807, allocations: 1.068 MB / 437.2 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001601/0.2809, allocations: 11.94 kB / 437.2 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003261/0.2812, allocations: 75.31 kB / 437.3 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000368/0.2815, allocations: 158.9 kB / 437.5 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003589/0.2819, allocations: 195.7 kB / 437.6 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006694/0.2826, allocations: 0.5969 MB / 438.2 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001976/0.2828, allocations: 82.91 kB / 438.3 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003469/0.2831, allocations: 275.2 kB / 438.6 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004185/0.2835, allocations: 291 kB / 438.9 MB, free: 1.254 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.494e-05/0.2836, allocations: 48 kB / 438.9 MB, free: 1.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001923/0.2838, allocations: 99.97 kB / 439 MB, free: 1.109 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001872/0.284, allocations: 123.6 kB / 439.1 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002641/0.2843, allocations: 234.9 kB / 439.4 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007018/0.285, allocations: 0.5975 MB / 440 MB, free: 168 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.285, allocations: 4 kB / 440 MB, free: 164 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.285, allocations: 0 / 440 MB, free: 164 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.285, allocations: 0 / 440 MB, free: 164 kB / 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.001492/0.2865, allocations: 0.7078 MB / 440.7 MB, free: 15.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.2865, allocations: 8.031 kB / 440.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001239/0.2866, allocations: 48.66 kB / 440.7 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005269/0.2872, allocations: 268.7 kB / 441 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.848e-05/0.2872, allocations: 29.38 kB / 441 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.436e-05/0.2873, allocations: 40.31 kB / 441.1 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009244/0.2882, allocations: 438.6 kB / 441.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.588e-05/0.2882, allocations: 11.95 kB / 441.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.332e-05/0.2883, allocations: 12 kB / 441.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.434e-05/0.2883, allocations: 15.98 kB / 441.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001055/0.2894, allocations: 439.7 kB / 442 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002506/0.2919, allocations: 1.214 MB / 443.2 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009503/0.2928, allocations: 382.9 kB / 443.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005064/0.2933, allocations: 230.1 kB / 443.8 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.481e-05/0.2934, allocations: 4.438 kB / 443.8 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.443e-05/0.2934, allocations: 35 kB / 443.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.254e-06/0.2934, allocations: 7.938 kB / 443.8 MB, free: 12.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005473/0.2989, allocations: 1.951 MB / 445.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.639e-05/0.2989, allocations: 63.78 kB / 445.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003821/0.2993, allocations: 269.8 kB / 446.1 MB, free: 9.812 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.75e-05/0.2994, allocations: 41.64 kB / 446.1 MB, free: 9.766 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000139/0.2995, allocations: 172.9 kB / 446.3 MB, free: 9.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001764/0.2997, allocations: 190.5 kB / 446.5 MB, free: 9.402 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001828/0.2999, allocations: 98.28 kB / 446.6 MB, free: 9.301 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001875/0.3001, allocations: 350.8 kB / 446.9 MB, free: 8.949 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005098/0.3006, allocations: 217.2 kB / 447.1 MB, free: 8.738 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005707/0.3012, allocations: 292 kB / 447.4 MB, free: 8.438 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008763/0.302, allocations: 402.7 kB / 447.8 MB, free: 8.023 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.302, allocations: 0 / 447.8 MB, free: 8.023 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001689/0.3037, allocations: 0.7221 MB / 448.5 MB, free: 7.285 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.3037, allocations: 4 kB / 448.6 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.3038, allocations: 3.984 kB / 448.6 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001131/0.3049, allocations: 422.4 kB / 449 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002798/0.3052, allocations: 67.89 kB / 449 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003442/0.3086, allocations: 3.459 MB / 452.5 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004947/0.3091, allocations: 67.91 kB / 452.6 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.323e-05/0.3091, allocations: 20 kB / 452.6 MB, free: 2.988 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.0002695/0.3094, allocations: 173.7 kB / 452.7 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.964e-05/0.3095, allocations: 43.77 kB / 452.8 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001729/0.3112, allocations: 0.7068 MB / 453.5 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.685e-06/0.3112, allocations: 4 kB / 453.5 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.786e-06/0.3113, allocations: 4 kB / 453.5 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.3113, allocations: 7.922 kB / 453.5 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002475/0.3137, allocations: 1.24 MB / 454.8 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.3137, allocations: 0 / 454.8 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002837/0.314, allocations: 59.89 kB / 454.8 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001027/0.315, allocations: 410 kB / 455.2 MB, free: 272 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.767e-05/0.3151, allocations: 19.97 kB / 455.2 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003336/0.3184, allocations: 3.408 MB / 458.6 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3184, allocations: 0 / 458.6 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002152/0.3206, allocations: 1.016 MB / 459.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002315/0.3208, allocations: 87.72 kB / 459.7 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.676e-05/0.3209, allocations: 16 kB / 459.8 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000472/0.3214, allocations: 71.91 kB / 459.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002261/0.3216, allocations: 100.2 kB / 459.9 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.563e-05/0.3216, allocations: 23.98 kB / 459.9 MB, free: 11.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002195/0.3219, allocations: 189.2 kB / 460.1 MB, free: 11.07 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3219, allocations: 0 / 460.1 MB, free: 11.07 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005117/0.3224, allocations: 123.9 kB / 460.3 MB, free: 10.95 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.001385/0.3238, allocations: 381.2 kB / 460.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001712/0.3255, allocations: 0.7558 MB / 461.4 MB, free: 9.914 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3255, allocations: 0 / 461.4 MB, free: 9.914 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009713/0.3264, allocations: 0.5105 MB / 461.9 MB, free: 9.375 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000561/0.327, allocations: 74.31 kB / 462 MB, free: 9.305 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002269/0.3293, allocations: 1.063 MB / 463 MB, free: 8.207 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005166/0.3298, allocations: 0.8085 MB / 463.8 MB, free: 7.367 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.3299, allocations: 39.42 kB / 463.9 MB, free: 7.328 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3299, allocations: 4 kB / 463.9 MB, free: 7.324 MB / 366.1 MB Notification: Performance of Templates: time 0.0143/0.3442, allocations: 9.5 MB / 473.4 MB, free: 13.83 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 -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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.739373028976843]