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.001404/0.001404, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.00148/0.00148, allocations: 212.4 kB / 23.73 MB, free: 4.164 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.49/1.49, allocations: 230.5 MB / 257.4 MB, free: 7.809 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.003054/0.003054, allocations: 63.89 kB / 378.2 MB, free: 2.336 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2768/0.2799, allocations: 53.41 MB / 431.6 MB, free: 6.547 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004677/0.2846, allocations: 2.779 MB / 434.4 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001964/0.2865, allocations: 1.013 MB / 435.4 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001486/0.2867, allocations: 7.938 kB / 435.4 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000349/0.287, allocations: 79.3 kB / 435.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000367/0.2874, allocations: 158.9 kB / 435.7 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003708/0.2878, allocations: 199.7 kB / 435.9 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000647/0.2884, allocations: 0.5969 MB / 436.4 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.2886, allocations: 78.97 kB / 436.5 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003476/0.289, allocations: 275.2 kB / 436.8 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004785/0.2894, allocations: 263 kB / 437.1 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001555/0.2896, allocations: 48 kB / 437.1 MB, free: 1.047 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002034/0.2898, allocations: 104 kB / 437.2 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001716/0.29, allocations: 123.6 kB / 437.3 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002076/0.2902, allocations: 199.1 kB / 437.5 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006746/0.2908, allocations: 0.6014 MB / 438.1 MB, free: 32 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2908, allocations: 0 / 438.1 MB, free: 32 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2908, allocations: 0 / 438.1 MB, free: 32 kB / 334.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.2909, allocations: 0 / 438.1 MB, free: 32 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.001511/0.2924, allocations: 0.7077 MB / 438.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.2924, allocations: 11.98 kB / 438.8 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001128/0.2925, allocations: 52.66 kB / 438.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005342/0.293, allocations: 260.8 kB / 439.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.784e-05/0.2931, allocations: 29.38 kB / 439.2 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.206e-05/0.2932, allocations: 40.36 kB / 439.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009186/0.2941, allocations: 442.6 kB / 439.6 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.802e-05/0.2941, allocations: 3.953 kB / 439.6 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.491e-05/0.2942, allocations: 16 kB / 439.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.248e-05/0.2942, allocations: 8 kB / 439.7 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001048/0.2952, allocations: 447.7 kB / 440.1 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002527/0.2978, allocations: 1.066 MB / 441.2 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009751/0.2987, allocations: 380.8 kB / 441.5 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005898/0.2993, allocations: 222.1 kB / 441.8 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.849e-05/0.2994, allocations: 8.375 kB / 441.8 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/0.2994, allocations: 42.94 kB / 441.8 MB, free: 12.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.833e-06/0.2994, allocations: 0 / 441.8 MB, free: 12.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005754/0.3052, allocations: 1.955 MB / 443.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.491e-05/0.3052, allocations: 55.84 kB / 443.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003376/0.3055, allocations: 269.8 kB / 444.1 MB, free: 9.852 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.113e-05/0.3056, allocations: 41.7 kB / 444.1 MB, free: 9.805 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.3058, allocations: 176.9 kB / 444.3 MB, free: 9.625 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001908/0.3059, allocations: 190.4 kB / 444.5 MB, free: 9.438 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001884/0.3061, allocations: 98.33 kB / 444.6 MB, free: 9.336 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001864/0.3063, allocations: 342.8 kB / 444.9 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005276/0.3068, allocations: 221.2 kB / 445.1 MB, free: 8.777 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005684/0.3074, allocations: 284.1 kB / 445.4 MB, free: 8.484 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008844/0.3083, allocations: 406.7 kB / 445.8 MB, free: 8.066 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3083, allocations: 0 / 445.8 MB, free: 8.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001747/0.3101, allocations: 0.7182 MB / 446.5 MB, free: 7.332 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.3101, allocations: 8 kB / 446.5 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.3101, allocations: 0 / 446.5 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001124/0.3112, allocations: 429.5 kB / 447 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002788/0.3115, allocations: 71.89 kB / 447 MB, free: 6.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003457/0.3149, allocations: 3.393 MB / 450.4 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005478/0.3155, allocations: 75.84 kB / 450.5 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.67e-05/0.3155, allocations: 19.94 kB / 450.5 MB, free: 3.109 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.0002582/0.3158, allocations: 173.8 kB / 450.7 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.3159, allocations: 35.77 kB / 450.7 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001827/0.3177, allocations: 0.7029 MB / 451.4 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/0.3177, allocations: 12 kB / 451.4 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/0.3177, allocations: 0 / 451.4 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.3177, allocations: 7.922 kB / 451.4 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002442/0.3202, allocations: 1.116 MB / 452.6 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.3202, allocations: 0 / 452.6 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002992/0.3205, allocations: 59.91 kB / 452.6 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00104/0.3215, allocations: 402.3 kB / 453 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.492e-05/0.3216, allocations: 15.98 kB / 453 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003524/0.3251, allocations: 3.367 MB / 456.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.3251, allocations: 3.938 kB / 456.4 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002205/0.3273, allocations: 1.016 MB / 457.4 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002509/0.3276, allocations: 87.66 kB / 457.5 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.568e-05/0.3277, allocations: 20 kB / 457.5 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005426/0.3282, allocations: 67.91 kB / 457.6 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002515/0.3285, allocations: 104.2 kB / 457.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.126e-05/0.3285, allocations: 19.97 kB / 457.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002324/0.3287, allocations: 189.2 kB / 457.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3287, allocations: 0 / 457.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005963/0.3293, allocations: 120 kB / 458 MB, free: 11.29 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.001532/0.3309, allocations: 404 kB / 458.4 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001955/0.3328, allocations: 0.76 MB / 459.2 MB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3328, allocations: 0 / 459.2 MB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001088/0.3339, allocations: 0.5142 MB / 459.7 MB, free: 9.688 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006257/0.3345, allocations: 80.33 kB / 459.7 MB, free: 9.609 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002262/0.3368, allocations: 1.024 MB / 460.8 MB, free: 8.559 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002354/0.337, allocations: 212.2 kB / 461 MB, free: 8.324 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001557/0.3372, allocations: 35.28 kB / 461 MB, free: 8.293 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.3373, allocations: 35.42 kB / 461 MB, free: 8.258 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3373, allocations: 0 / 461 MB, free: 8.258 MB / 366.1 MB Notification: Performance of Templates: time 0.01716/0.3544, allocations: 9.127 MB / 470.2 MB, free: 15.2 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.928814265877008]