Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001265/0.001265, allocations: 106.9 kB / 19.8 MB, free: 2.5 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.00145/0.00145, allocations: 223.2 kB / 23 MB, free: 5.57 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 230.2 MB / 256.2 MB, free: 8.539 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001803/0.001803, allocations: 67.89 kB / 376.5 MB, free: 3.605 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2502/0.252, allocations: 53.32 MB / 429.8 MB, free: 7.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004961/0.2569, allocations: 2.988 MB / 432.8 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001882/0.2588, allocations: 1.056 MB / 433.8 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001534/0.259, allocations: 7.938 kB / 433.8 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003212/0.2593, allocations: 79.3 kB / 433.9 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003783/0.2597, allocations: 170.8 kB / 434.1 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003685/0.26, allocations: 179.7 kB / 434.3 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006538/0.2607, allocations: 0.5969 MB / 434.9 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001961/0.2609, allocations: 82.7 kB / 434.9 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003058/0.2612, allocations: 267.2 kB / 435.2 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003762/0.2616, allocations: 294.9 kB / 435.5 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.706e-05/0.2616, allocations: 48 kB / 435.5 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001839/0.2618, allocations: 99.98 kB / 435.6 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001853/0.262, allocations: 127.6 kB / 435.8 MB, free: 1.531 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002393/0.2623, allocations: 242.8 kB / 436 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006844/0.2629, allocations: 0.5849 MB / 436.6 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.2629, allocations: 0 / 436.6 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2629, allocations: 0 / 436.6 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.935e-06/0.263, allocations: 0 / 436.6 MB, free: 0.7109 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.001502/0.2645, allocations: 0.7793 MB / 437.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.393e-05/0.2645, allocations: 8.031 kB / 437.4 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001149/0.2646, allocations: 52.64 kB / 437.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000514/0.2651, allocations: 338.5 kB / 437.7 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.711e-05/0.2652, allocations: 29.38 kB / 437.8 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.645e-05/0.2652, allocations: 36.38 kB / 437.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008586/0.2661, allocations: 434.6 kB / 438.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.365e-05/0.2661, allocations: 11.94 kB / 438.2 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.738e-05/0.2662, allocations: 16 kB / 438.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.2662, allocations: 8 kB / 438.3 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009795/0.2671, allocations: 443.7 kB / 438.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002368/0.2695, allocations: 1.277 MB / 440 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009037/0.2704, allocations: 383.6 kB / 440.4 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004874/0.2709, allocations: 226.1 kB / 440.6 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.164e-05/0.271, allocations: 12.42 kB / 440.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.28e-05/0.271, allocations: 43 kB / 440.6 MB, free: 12.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.445e-06/0.271, allocations: 0 / 440.6 MB, free: 12.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.008082/0.2791, allocations: 2.249 MB / 442.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.267e-05/0.2791, allocations: 63.78 kB / 442.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004885/0.2796, allocations: 270.6 kB / 443.2 MB, free: 9.746 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.902e-05/0.2797, allocations: 37.7 kB / 443.2 MB, free: 9.703 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001851/0.2799, allocations: 173 kB / 443.4 MB, free: 9.527 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002337/0.2801, allocations: 190.5 kB / 443.6 MB, free: 9.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002845/0.2804, allocations: 102.2 kB / 443.7 MB, free: 9.234 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002217/0.2806, allocations: 350.7 kB / 444 MB, free: 8.883 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007731/0.2814, allocations: 221 kB / 444.3 MB, free: 8.664 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008507/0.2823, allocations: 287.2 kB / 444.5 MB, free: 8.371 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001291/0.2836, allocations: 399.7 kB / 444.9 MB, free: 7.961 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.2836, allocations: 4 kB / 444.9 MB, free: 7.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002544/0.2861, allocations: 0.7081 MB / 445.6 MB, free: 7.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.427e-05/0.2861, allocations: 6.656 kB / 445.6 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/0.2861, allocations: 12.11 kB / 445.7 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001673/0.2878, allocations: 422.2 kB / 446.1 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004362/0.2883, allocations: 67.89 kB / 446.1 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004568/0.2928, allocations: 3.672 MB / 449.8 MB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005425/0.2934, allocations: 71.94 kB / 449.9 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.004e-05/0.2934, allocations: 24.09 kB / 449.9 MB, free: 2.66 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.0002562/0.2937, allocations: 170.5 kB / 450.1 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.361e-05/0.2938, allocations: 39.77 kB / 450.1 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001739/0.2955, allocations: 0.7083 MB / 450.8 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.2955, allocations: 4 kB / 450.8 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.431e-06/0.2955, allocations: 4 kB / 450.8 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.2955, allocations: 3.984 kB / 450.8 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002356/0.2979, allocations: 1.278 MB / 452.1 MB, free: 376 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.2979, allocations: 0 / 452.1 MB, free: 376 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002812/0.2982, allocations: 51.91 kB / 452.2 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001035/0.2992, allocations: 410.1 kB / 452.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.975e-05/0.2993, allocations: 23.98 kB / 452.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003452/0.3027, allocations: 3.614 MB / 456.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3027, allocations: 0 / 456.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002147/0.3049, allocations: 1.01 MB / 457.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002281/0.3051, allocations: 168.9 kB / 457.4 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.33e-05/0.3052, allocations: 16 kB / 457.4 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004815/0.3056, allocations: 71.91 kB / 457.5 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000223/0.3059, allocations: 96.28 kB / 457.5 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.887e-05/0.3059, allocations: 23.97 kB / 457.6 MB, free: 10.54 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002254/0.3061, allocations: 198 kB / 457.8 MB, free: 10.35 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3061, allocations: 0 / 457.8 MB, free: 10.35 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005324/0.3067, allocations: 120 kB / 457.9 MB, free: 10.23 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.001325/0.308, allocations: 379.8 kB / 458.3 MB, free: 9.961 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001637/0.3096, allocations: 0.7615 MB / 459 MB, free: 9.172 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3096, allocations: 0 / 459 MB, free: 9.172 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009656/0.3106, allocations: 0.511 MB / 459.5 MB, free: 8.637 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005275/0.3111, allocations: 71.77 kB / 459.6 MB, free: 8.566 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002071/0.3132, allocations: 1.023 MB / 460.6 MB, free: 7.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004749/0.3137, allocations: 0.8085 MB / 461.4 MB, free: 6.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001389/0.3138, allocations: 39.25 kB / 461.5 MB, free: 6.645 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.876e-05/0.3139, allocations: 35.42 kB / 461.5 MB, free: 6.609 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3139, allocations: 3.938 kB / 461.5 MB, free: 6.605 MB / 366.1 MB Notification: Performance of Templates: time 0.01817/0.3321, allocations: 10.46 MB / 472 MB, free: 12.18 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.7429841440171]