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.001591/0.001591, 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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002124/0.002124, allocations: 209.8 kB / 24.48 MB, free: 3.934 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.492/1.492, allocations: 230.5 MB / 258.1 MB, free: 7.777 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.002001/0.002001, allocations: 59.84 kB / 379 MB, free: 2.301 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2741, allocations: 53.41 MB / 432.4 MB, free: 6.504 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.005302/0.2794, allocations: 2.779 MB / 435.2 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002084/0.2815, allocations: 1.009 MB / 436.2 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002155/0.2817, allocations: 7.938 kB / 436.2 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003371/0.2821, allocations: 79.3 kB / 436.3 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004326/0.2825, allocations: 154.9 kB / 436.4 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004335/0.2829, allocations: 203.7 kB / 436.6 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007192/0.2837, allocations: 0.5969 MB / 437.2 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002165/0.2839, allocations: 82.62 kB / 437.3 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003568/0.2842, allocations: 271.2 kB / 437.6 MB, free: 1.316 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004012/0.2846, allocations: 266.9 kB / 437.8 MB, free: 1.055 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.635e-05/0.2847, allocations: 48 kB / 437.9 MB, free: 1.008 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002254/0.2849, allocations: 99.97 kB / 438 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001856/0.2851, allocations: 123.6 kB / 438.1 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002359/0.2854, allocations: 199.1 kB / 438.3 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007946/0.2862, allocations: 0.6022 MB / 438.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2862, allocations: 0 / 438.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.2862, allocations: 0 / 438.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.2862, allocations: 0 / 438.9 MB, free: 15.99 MB / 350.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.00159/0.2878, allocations: 0.7078 MB / 439.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.2878, allocations: 11.98 kB / 439.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.2879, allocations: 48.66 kB / 439.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005809/0.2885, allocations: 260.8 kB / 439.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.056e-05/0.2886, allocations: 29.38 kB / 439.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.165e-05/0.2886, allocations: 44.3 kB / 440 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000939/0.2896, allocations: 446.6 kB / 440.4 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.484e-05/0.2896, allocations: 3.953 kB / 440.4 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.771e-05/0.2897, allocations: 16 kB / 440.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.2897, allocations: 8 kB / 440.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.2907, allocations: 439.7 kB / 440.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002587/0.2933, allocations: 1.062 MB / 441.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001045/0.2943, allocations: 376.8 kB / 442.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005208/0.2949, allocations: 226.1 kB / 442.5 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.929e-05/0.2949, allocations: 12.36 kB / 442.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.753e-05/0.295, allocations: 42.94 kB / 442.6 MB, free: 12.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.675e-06/0.295, allocations: 0 / 442.6 MB, free: 12.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005665/0.3006, allocations: 1.947 MB / 444.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.312e-05/0.3007, allocations: 59.84 kB / 444.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003466/0.301, allocations: 261.8 kB / 444.8 MB, free: 9.828 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.201e-05/0.3011, allocations: 45.7 kB / 444.9 MB, free: 9.777 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001539/0.3013, allocations: 172.9 kB / 445 MB, free: 9.602 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001918/0.3014, allocations: 198.3 kB / 445.2 MB, free: 9.406 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001858/0.3016, allocations: 94.33 kB / 445.3 MB, free: 9.309 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002148/0.3018, allocations: 346.8 kB / 445.7 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005303/0.3024, allocations: 229.2 kB / 445.9 MB, free: 8.738 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005798/0.303, allocations: 284.1 kB / 446.2 MB, free: 8.445 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008553/0.3038, allocations: 402.7 kB / 446.6 MB, free: 8.031 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3038, allocations: 4 kB / 446.6 MB, free: 8.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001761/0.3056, allocations: 0.722 MB / 447.3 MB, free: 7.289 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.3056, allocations: 8 kB / 447.3 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.3056, allocations: 0 / 447.3 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001172/0.3068, allocations: 425.5 kB / 447.7 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002837/0.3071, allocations: 75.88 kB / 447.8 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003502/0.3106, allocations: 3.389 MB / 451.2 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005718/0.3111, allocations: 80.16 kB / 451.3 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.441e-05/0.3112, allocations: 16 kB / 451.3 MB, free: 3.07 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.0002702/0.3114, allocations: 169.7 kB / 451.4 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/0.3116, allocations: 35.77 kB / 451.5 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001708/0.3133, allocations: 0.703 MB / 452.2 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.3133, allocations: 11.98 kB / 452.2 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.3133, allocations: 0 / 452.2 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.3133, allocations: 7.922 kB / 452.2 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002427/0.3157, allocations: 1.12 MB / 453.3 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.3157, allocations: 0 / 453.3 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002905/0.316, allocations: 59.91 kB / 453.4 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001044/0.3171, allocations: 406.3 kB / 453.8 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.75e-05/0.3171, allocations: 19.92 kB / 453.8 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00337/0.3205, allocations: 3.366 MB / 457.2 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.3205, allocations: 3.938 kB / 457.2 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002193/0.3227, allocations: 1.015 MB / 458.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002469/0.3229, allocations: 87.66 kB / 458.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.607e-05/0.323, allocations: 20 kB / 458.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005356/0.3235, allocations: 68 kB / 458.3 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002368/0.3238, allocations: 100.3 kB / 458.4 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.503e-05/0.3238, allocations: 19.97 kB / 458.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002254/0.324, allocations: 189.2 kB / 458.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.324, allocations: 0 / 458.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005224/0.3246, allocations: 120 kB / 458.8 MB, free: 11.25 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.001508/0.3261, allocations: 399.5 kB / 459.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001783/0.3279, allocations: 0.7636 MB / 459.9 MB, free: 10.19 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3279, allocations: 0 / 459.9 MB, free: 10.19 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009863/0.3288, allocations: 0.5144 MB / 460.4 MB, free: 9.645 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005907/0.3294, allocations: 68.34 kB / 460.5 MB, free: 9.578 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002342/0.3318, allocations: 1.061 MB / 461.6 MB, free: 8.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002342/0.332, allocations: 208.2 kB / 461.8 MB, free: 8.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001237/0.3321, allocations: 35.42 kB / 461.8 MB, free: 8.215 MB / 366.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3321, allocations: 0 / 461.8 MB, free: 8.215 MB / 366.1 MB Notification: Performance of Templates: time 0.01883/0.351, allocations: 9.627 MB / 471.4 MB, free: 14.59 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/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_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: 8.635731833986938]