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.001371/0.001371, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.001558/0.001558, allocations: 209 kB / 24.48 MB, free: 3.938 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.537/1.537, allocations: 230.6 MB / 258.2 MB, free: 7.75 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.002333/0.002333, allocations: 43.92 kB / 379 MB, free: 2.434 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.2736, allocations: 53.37 MB / 432.3 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.006119/0.2797, allocations: 2.779 MB / 435.1 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00226/0.282, allocations: 1.006 MB / 436.1 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003088/0.2823, allocations: 11.94 kB / 436.1 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003829/0.2827, allocations: 83.28 kB / 436.2 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005326/0.2832, allocations: 150.9 kB / 436.4 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004872/0.2837, allocations: 195.7 kB / 436.5 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008004/0.2845, allocations: 0.6086 MB / 437.2 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002223/0.2847, allocations: 73.94 kB / 437.2 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004551/0.2852, allocations: 267.2 kB / 437.5 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004611/0.2856, allocations: 274.9 kB / 437.8 MB, free: 1.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001106/0.2857, allocations: 44 kB / 437.8 MB, free: 1.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002422/0.286, allocations: 99.97 kB / 437.9 MB, free: 1.109 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001816/0.2862, allocations: 127.6 kB / 438 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002754/0.2864, allocations: 199.1 kB / 438.2 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007644/0.2872, allocations: 0.6029 MB / 438.8 MB, free: 192 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.2872, allocations: 4 kB / 438.8 MB, free: 188 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2872, allocations: 0 / 438.8 MB, free: 188 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.725e-05/0.2872, allocations: 0 / 438.8 MB, free: 188 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.001681/0.2889, allocations: 0.7022 MB / 439.5 MB, free: 15.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.2889, allocations: 11.97 kB / 439.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001372/0.2891, allocations: 48.66 kB / 439.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005802/0.2897, allocations: 264.8 kB / 439.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.994e-05/0.2897, allocations: 29.38 kB / 439.9 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.496e-05/0.2898, allocations: 36.36 kB / 439.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009359/0.2907, allocations: 446.6 kB / 440.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.535e-05/0.2908, allocations: 3.953 kB / 440.3 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.74e-05/0.2908, allocations: 16 kB / 440.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.879e-06/0.2908, allocations: 8 kB / 440.4 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.2918, allocations: 439.7 kB / 440.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002479/0.2943, allocations: 1.07 MB / 441.9 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009422/0.2953, allocations: 369.6 kB / 442.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005101/0.2958, allocations: 230.1 kB / 442.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.681e-05/0.2958, allocations: 12.38 kB / 442.5 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.971e-05/0.2959, allocations: 38.94 kB / 442.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.894e-06/0.2959, allocations: 0 / 442.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005612/0.3015, allocations: 1.951 MB / 444.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.055e-05/0.3015, allocations: 63.83 kB / 444.5 MB, free: 10.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003444/0.3019, allocations: 265.8 kB / 444.8 MB, free: 10.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.221e-05/0.3019, allocations: 41.7 kB / 444.8 MB, free: 9.969 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001322/0.3021, allocations: 172.9 kB / 445 MB, free: 9.793 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001925/0.3023, allocations: 194.4 kB / 445.2 MB, free: 9.602 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001825/0.3024, allocations: 98.33 kB / 445.3 MB, free: 9.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.3026, allocations: 346.8 kB / 445.6 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005224/0.3031, allocations: 225.2 kB / 445.8 MB, free: 8.934 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005654/0.3037, allocations: 288.1 kB / 446.1 MB, free: 8.637 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000864/0.3046, allocations: 398.7 kB / 446.5 MB, free: 8.227 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.3046, allocations: 8 kB / 446.5 MB, free: 8.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001698/0.3063, allocations: 0.7143 MB / 447.2 MB, free: 7.488 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.3063, allocations: 7.984 kB / 447.2 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.3063, allocations: 4 kB / 447.2 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001106/0.3074, allocations: 422.5 kB / 447.6 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002866/0.3077, allocations: 71.89 kB / 447.7 MB, free: 6.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003384/0.3111, allocations: 3.394 MB / 451.1 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005415/0.3116, allocations: 80.19 kB / 451.2 MB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.503e-05/0.3116, allocations: 16 kB / 451.2 MB, free: 3.266 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.0002612/0.3119, allocations: 166.4 kB / 451.4 MB, free: 3.094 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/0.312, allocations: 39.77 kB / 451.4 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001747/0.3138, allocations: 0.7029 MB / 452.1 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.3138, allocations: 4 kB / 452.1 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.689e-06/0.3138, allocations: 8 kB / 452.1 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.3138, allocations: 7.922 kB / 452.1 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002421/0.3162, allocations: 1.128 MB / 453.3 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.3162, allocations: 0 / 453.3 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000286/0.3165, allocations: 55.91 kB / 453.3 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001038/0.3175, allocations: 406.3 kB / 453.7 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.044e-05/0.3176, allocations: 19.98 kB / 453.7 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003268/0.3209, allocations: 3.357 MB / 457.1 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.3209, allocations: 3.938 kB / 457.1 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002128/0.323, allocations: 1.011 MB / 458.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002543/0.3232, allocations: 87.67 kB / 458.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.516e-05/0.3233, allocations: 23.98 kB / 458.2 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004993/0.3238, allocations: 68 kB / 458.3 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002197/0.3241, allocations: 96.41 kB / 458.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.071e-05/0.3241, allocations: 23.97 kB / 458.4 MB, free: 11.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002139/0.3243, allocations: 185.2 kB / 458.6 MB, free: 11.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3243, allocations: 0 / 458.6 MB, free: 11.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005374/0.3249, allocations: 120 kB / 458.7 MB, free: 11.45 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.001509/0.3264, allocations: 414.5 kB / 459.1 MB, free: 11.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001684/0.3281, allocations: 0.7558 MB / 459.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3281, allocations: 4 kB / 459.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009644/0.329, allocations: 0.5105 MB / 460.4 MB, free: 9.871 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005766/0.3296, allocations: 76.31 kB / 460.4 MB, free: 9.797 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002241/0.3318, allocations: 1.057 MB / 461.5 MB, free: 8.703 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002148/0.3321, allocations: 204.2 kB / 461.7 MB, free: 8.477 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001166/0.3322, allocations: 39.42 kB / 461.7 MB, free: 8.438 MB / 366.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3322, allocations: 0 / 461.7 MB, free: 8.438 MB / 366.1 MB Notification: Performance of Templates: time 0.01442/0.3466, allocations: 9.637 MB / 471.4 MB, free: 14.81 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/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_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.998234013095498]