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.001824/0.001824, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.00232/0.00232, allocations: 213.3 kB / 23.75 MB, free: 4.668 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.523/1.523, allocations: 230.6 MB / 257.5 MB, free: 8.004 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+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 0.001614/0.001614, allocations: 51.92 kB / 378.3 MB, free: 2.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.235/0.2366, allocations: 53.35 MB / 431.6 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004678/0.2413, allocations: 2.987 MB / 434.6 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0019/0.2432, allocations: 1.068 MB / 435.7 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001369/0.2433, allocations: 7.938 kB / 435.7 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002783/0.2436, allocations: 83.28 kB / 435.8 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003795/0.2439, allocations: 150.9 kB / 435.9 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003529/0.2443, allocations: 191.7 kB / 436.1 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000635/0.2449, allocations: 0.6086 MB / 436.7 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001869/0.2451, allocations: 74.98 kB / 436.8 MB, free: 1.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003465/0.2455, allocations: 271.2 kB / 437 MB, free: 1.484 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004097/0.2459, allocations: 299 kB / 437.3 MB, free: 1.191 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.019e-05/0.246, allocations: 48 kB / 437.4 MB, free: 1.145 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001903/0.2461, allocations: 95.98 kB / 437.5 MB, free: 1.051 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001714/0.2463, allocations: 131.6 kB / 437.6 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002505/0.2466, allocations: 234.9 kB / 437.8 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008521/0.2474, allocations: 0.5966 MB / 438.4 MB, free: 100 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2474, allocations: 0 / 438.4 MB, free: 100 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2474, allocations: 0 / 438.4 MB, free: 100 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.2474, allocations: 0 / 438.4 MB, free: 100 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.002181/0.2496, allocations: 0.704 MB / 439.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.2497, allocations: 8.031 kB / 439.1 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001622/0.2498, allocations: 56.58 kB / 439.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007279/0.2505, allocations: 264.8 kB / 439.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.362e-05/0.2506, allocations: 33.38 kB / 439.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/0.2507, allocations: 36.38 kB / 439.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001352/0.2521, allocations: 438.6 kB / 440 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.377e-05/0.2521, allocations: 15.83 kB / 440 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.649e-05/0.2522, allocations: 12 kB / 440 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.064e-05/0.2522, allocations: 8 kB / 440 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001584/0.2538, allocations: 443.7 kB / 440.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003689/0.2575, allocations: 1.21 MB / 441.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00135/0.2588, allocations: 382.8 kB / 442 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007658/0.2596, allocations: 226.1 kB / 442.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.085e-05/0.2597, allocations: 8.422 kB / 442.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.968e-05/0.2597, allocations: 38.94 kB / 442.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.905e-06/0.2597, allocations: 7.938 kB / 442.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.00835/0.268, allocations: 1.955 MB / 444.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.254e-05/0.2681, allocations: 63.77 kB / 444.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005509/0.2687, allocations: 261.9 kB / 444.6 MB, free: 9.758 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.851e-05/0.2687, allocations: 49.69 kB / 444.6 MB, free: 9.703 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001992/0.2689, allocations: 165 kB / 444.8 MB, free: 9.535 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002446/0.2692, allocations: 194.5 kB / 444.9 MB, free: 9.344 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002692/0.2695, allocations: 102.3 kB / 445 MB, free: 9.238 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002148/0.2697, allocations: 346.8 kB / 445.4 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007679/0.2704, allocations: 217.2 kB / 445.6 MB, free: 8.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008663/0.2713, allocations: 296.1 kB / 445.9 MB, free: 8.375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001276/0.2726, allocations: 402.7 kB / 446.3 MB, free: 7.961 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.2726, allocations: 0 / 446.3 MB, free: 7.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002562/0.2751, allocations: 0.7143 MB / 447 MB, free: 7.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.2752, allocations: 8 kB / 447 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.2752, allocations: 0 / 447 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001609/0.2768, allocations: 428 kB / 447.4 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004355/0.2772, allocations: 67.89 kB / 447.5 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004738/0.282, allocations: 3.462 MB / 451 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007751/0.2827, allocations: 67.91 kB / 451 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.012e-05/0.2828, allocations: 23.98 kB / 451 MB, free: 2.926 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.0003469/0.2832, allocations: 170.4 kB / 451.2 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001524/0.2833, allocations: 39.77 kB / 451.2 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002545/0.2859, allocations: 0.7068 MB / 452 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.13e-05/0.2859, allocations: 7.984 kB / 452 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.2859, allocations: 7.938 kB / 452 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.2859, allocations: 0 / 452 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0036/0.2895, allocations: 1.248 MB / 453.2 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.399e-06/0.2895, allocations: 0 / 453.2 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004182/0.2899, allocations: 51.97 kB / 453.3 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001522/0.2914, allocations: 406.2 kB / 453.7 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-05/0.2915, allocations: 19.97 kB / 453.7 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004275/0.2958, allocations: 3.407 MB / 457.1 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2958, allocations: 3.938 kB / 457.1 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003236/0.299, allocations: 1.016 MB / 458.1 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003224/0.2993, allocations: 87.72 kB / 458.2 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001251/0.2995, allocations: 20 kB / 458.2 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007497/0.3002, allocations: 67.91 kB / 458.3 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003272/0.3005, allocations: 104.2 kB / 458.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.178e-05/0.3006, allocations: 19.98 kB / 458.4 MB, free: 11.2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003098/0.3009, allocations: 189.2 kB / 458.6 MB, free: 11.01 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3009, allocations: 4 kB / 458.6 MB, free: 11.01 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008268/0.3017, allocations: 127.9 kB / 458.7 MB, free: 10.88 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.001789/0.3035, allocations: 382 kB / 459.1 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002329/0.3059, allocations: 0.7597 MB / 459.8 MB, free: 9.848 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.3059, allocations: 4.25 kB / 459.9 MB, free: 9.844 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00132/0.3072, allocations: 0.5064 MB / 460.4 MB, free: 9.309 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008034/0.308, allocations: 68.53 kB / 460.4 MB, free: 9.242 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003015/0.311, allocations: 1.02 MB / 461.4 MB, free: 8.191 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005912/0.3116, allocations: 0.8163 MB / 462.3 MB, free: 7.344 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001845/0.3118, allocations: 39.22 kB / 462.3 MB, free: 7.309 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001345/0.3119, allocations: 35.41 kB / 462.3 MB, free: 7.273 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3119, allocations: 0 / 462.3 MB, free: 7.273 MB / 366.1 MB Notification: Performance of Templates: time 0.01993/0.3318, allocations: 10.59 MB / 472.9 MB, free: 12.74 MB / 382.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.980760210193694]