Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 112.2 kB / 19.04 MB, free: 3.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002129/0.002129, allocations: 196.4 kB / 22.22 MB, free: 72 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 225.6 MB / 250.8 MB, free: 13.36 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 51.91 kB / 368.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/0.2667, allocations: 52.14 MB / 420.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004252/0.2709, allocations: 2.847 MB / 423.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001663/0.2726, allocations: 0.9037 MB / 424.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001435/0.2727, allocations: 4 kB / 424.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002176/0.2729, allocations: 59.39 kB / 424.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000264/0.2732, allocations: 107.1 kB / 424.8 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005058/0.2737, allocations: 223.6 kB / 425 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000657/0.2744, allocations: 0.5734 MB / 425.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002024/0.2746, allocations: 78.7 kB / 425.6 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003157/0.2749, allocations: 247.2 kB / 425.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003559/0.2752, allocations: 275 kB / 426.2 MB, free: 9.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.139e-05/0.2753, allocations: 44 kB / 426.2 MB, free: 9.727 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000184/0.2755, allocations: 99.94 kB / 426.3 MB, free: 9.629 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001334/0.2756, allocations: 115.6 kB / 426.4 MB, free: 9.516 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002268/0.2759, allocations: 215 kB / 426.6 MB, free: 9.305 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000666/0.2765, allocations: 0.5344 MB / 427.1 MB, free: 8.773 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2765, allocations: 4 kB / 427.2 MB, free: 8.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2765, allocations: 0 / 427.2 MB, free: 8.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.223e-05/0.2765, allocations: 0 / 427.2 MB, free: 8.77 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001443/0.278, allocations: 0.7513 MB / 427.9 MB, free: 7.969 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.278, allocations: 8.031 kB / 427.9 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.867e-05/0.2781, allocations: 44.7 kB / 428 MB, free: 7.918 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000472/0.2786, allocations: 318.6 kB / 428.3 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.746e-05/0.2786, allocations: 25.38 kB / 428.3 MB, free: 7.539 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.679e-05/0.2787, allocations: 32.38 kB / 428.3 MB, free: 7.508 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009096/0.2796, allocations: 454.6 kB / 428.8 MB, free: 7.055 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.361e-05/0.2796, allocations: 3.953 kB / 428.8 MB, free: 7.051 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.374e-05/0.2797, allocations: 12 kB / 428.8 MB, free: 7.039 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.2797, allocations: 8 kB / 428.8 MB, free: 7.031 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009747/0.2807, allocations: 459.7 kB / 429.2 MB, free: 6.582 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002368/0.283, allocations: 1.254 MB / 430.5 MB, free: 5.258 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008383/0.2839, allocations: 343.7 kB / 430.8 MB, free: 4.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004737/0.2844, allocations: 233.5 kB / 431.1 MB, free: 4.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.047e-05/0.2844, allocations: 4.375 kB / 431.1 MB, free: 4.676 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.2844, allocations: 46.86 kB / 431.1 MB, free: 4.621 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 1.713e-06/0.2844, allocations: 3.938 kB / 431.1 MB, free: 4.617 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.005289/0.2897, allocations: 2.251 MB / 433.4 MB, free: 2.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.311e-05/0.2898, allocations: 59.84 kB / 433.4 MB, free: 2.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002694/0.29, allocations: 246.6 kB / 433.7 MB, free: 1.918 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.006e-05/0.2901, allocations: 41.7 kB / 433.7 MB, free: 1.871 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.2902, allocations: 172.9 kB / 433.9 MB, free: 1.695 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.2904, allocations: 174.6 kB / 434 MB, free: 1.523 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000196/0.2906, allocations: 98.19 kB / 434.1 MB, free: 1.418 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.2907, allocations: 342.8 kB / 434.5 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004794/0.2912, allocations: 237 kB / 434.7 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005291/0.2917, allocations: 299.2 kB / 435 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007933/0.2925, allocations: 419.7 kB / 435.4 MB, free: 112 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.2925, allocations: 3.938 kB / 435.4 MB, free: 108 kB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001619/0.2941, allocations: 0.7471 MB / 436.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.2942, allocations: 10.81 kB / 436.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.2942, allocations: 0 / 436.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001104/0.2953, allocations: 0.553 MB / 436.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002748/0.2955, allocations: 63.91 kB / 436.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003248/0.2988, allocations: 3.661 MB / 440.4 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000469/0.2993, allocations: 76.06 kB / 440.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.98e-05/0.2993, allocations: 19.98 kB / 440.5 MB, free: 10.65 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 (46): * Single equations (assignments): 43 * 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,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0002366/0.2995, allocations: 166.3 kB / 440.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.979e-05/0.2996, allocations: 35.77 kB / 440.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001554/0.3012, allocations: 0.7209 MB / 441.5 MB, free: 9.711 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.3012, allocations: 4 kB / 441.5 MB, free: 9.707 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.3012, allocations: 0 / 441.5 MB, free: 9.707 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.261e-06/0.3012, allocations: 7.984 kB / 441.5 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002232/0.3034, allocations: 1.25 MB / 442.7 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.3034, allocations: 0 / 442.7 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002672/0.3037, allocations: 59.91 kB / 442.8 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001011/0.3047, allocations: 0.5294 MB / 443.3 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.658e-05/0.3048, allocations: 15.98 kB / 443.3 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003045/0.3078, allocations: 3.633 MB / 447 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3078, allocations: 4.031 kB / 447 MB, free: 3.828 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001921/0.3097, allocations: 1.021 MB / 448 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002039/0.3099, allocations: 160.9 kB / 448.1 MB, free: 2.605 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.803e-05/0.31, allocations: 24 kB / 448.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000441/0.3104, allocations: 71.84 kB / 448.2 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002144/0.3107, allocations: 88.23 kB / 448.3 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.71e-05/0.3107, allocations: 23.97 kB / 448.3 MB, free: 2.402 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001787/0.3109, allocations: 182 kB / 448.5 MB, free: 2.219 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3109, allocations: 0 / 448.5 MB, free: 2.219 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004913/0.3114, allocations: 127.9 kB / 448.6 MB, free: 2.094 MB / 350.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,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002355/0.3116, allocations: 131.8 kB / 448.8 MB, free: 1.953 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00157/0.3132, allocations: 0.7705 MB / 449.5 MB, free: 1.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3132, allocations: 0 / 449.5 MB, free: 1.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009224/0.3141, allocations: 0.5177 MB / 450.1 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005278/0.3146, allocations: 59.84 kB / 450.1 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002059/0.3167, allocations: 0.9909 MB / 451.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004282/0.3171, allocations: 0.7996 MB / 451.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001325/0.3173, allocations: 35.27 kB / 451.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.211e-05/0.3173, allocations: 31.44 kB / 452 MB, free: 14.65 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3173, allocations: 0 / 452 MB, free: 14.65 MB / 366.1 MB Notification: Performance of Templates: time 0.0168/0.3341, allocations: 10.42 MB / 462.4 MB, free: 4.27 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.670751942321658]