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.001121/0.001121, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 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.001187/0.001187, allocations: 164.2 kB / 24.91 MB, free: 8.762 MB / 18.57 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 0.9686/0.9686, allocations: 177 MB / 205.2 MB, free: 5.453 MB / 186.7 MB " [Timeout remaining time 179] 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 1.202e-06/1.202e-06, allocations: 0 / 273.4 MB, free: 1.195 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.346e-05/1.466e-05, allocations: 2.312 kB / 273.4 MB, free: 1.191 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003191/0.003205, allocations: 2.975 MB / 276.4 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.004639, allocations: 1.06 MB / 277.5 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001473/0.004786, allocations: 8 kB / 277.5 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000265/0.005051, allocations: 87.16 kB / 277.5 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003103/0.005362, allocations: 158.8 kB / 277.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003125/0.005674, allocations: 195.6 kB / 277.9 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00047/0.006144, allocations: 0.6162 MB / 278.5 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.006294, allocations: 79.02 kB / 278.6 MB, free: 11.99 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003126/0.006607, allocations: 371.2 kB / 278.9 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002461/0.006853, allocations: 243.4 kB / 279.2 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.11e-05/0.006914, allocations: 48 kB / 279.2 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001304/0.007045, allocations: 99.86 kB / 279.3 MB, free: 11.24 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001132/0.007158, allocations: 131.6 kB / 279.5 MB, free: 11.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001168/0.007275, allocations: 171.6 kB / 279.6 MB, free: 10.95 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003884/0.007663, allocations: 466.4 kB / 280.1 MB, free: 10.49 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.503e-06/0.007665, allocations: 0 / 280.1 MB, free: 10.49 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.007665, allocations: 0 / 280.1 MB, free: 10.49 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.00767, allocations: 0 / 280.1 MB, free: 10.49 MB / 266.7 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.0007337/0.008404, allocations: 0.6595 MB / 280.7 MB, free: 9.805 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.008436, allocations: 11.98 kB / 280.8 MB, free: 9.793 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.831e-05/0.008515, allocations: 56.89 kB / 280.8 MB, free: 9.738 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002835/0.008798, allocations: 237.2 kB / 281 MB, free: 9.477 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.25e-05/0.008831, allocations: 29.38 kB / 281.1 MB, free: 9.449 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.972e-05/0.008881, allocations: 40.38 kB / 281.1 MB, free: 9.41 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003637/0.009244, allocations: 310.8 kB / 281.4 MB, free: 9.102 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.838e-05/0.009263, allocations: 12.12 kB / 281.4 MB, free: 9.09 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.758e-05/0.00929, allocations: 16.38 kB / 281.4 MB, free: 9.074 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.009301, allocations: 11.94 kB / 281.5 MB, free: 9.062 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002519/0.009553, allocations: 178.8 kB / 281.6 MB, free: 8.883 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001069/0.01062, allocations: 0.7691 MB / 282.4 MB, free: 8.09 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000358/0.01098, allocations: 229.2 kB / 282.6 MB, free: 7.852 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001222/0.0111, allocations: 110.3 kB / 282.7 MB, free: 7.738 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.151e-05/0.01113, allocations: 8.5 kB / 282.7 MB, free: 7.73 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.427e-05/0.01116, allocations: 43 kB / 282.8 MB, free: 7.68 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.513e-06/0.01116, allocations: 0 / 282.8 MB, free: 7.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=54): time 0.002044/0.0132, allocations: 1.287 MB / 284.1 MB, free: 6.336 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.566e-05/0.01323, allocations: 55.91 kB / 284.1 MB, free: 6.27 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001426/0.01337, allocations: 250.5 kB / 284.4 MB, free: 6.012 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.244e-05/0.0134, allocations: 41.7 kB / 284.4 MB, free: 5.965 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.667e-05/0.01346, allocations: 152.9 kB / 284.6 MB, free: 5.809 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.989e-05/0.01355, allocations: 190.4 kB / 284.7 MB, free: 5.621 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.01366, allocations: 98.28 kB / 284.8 MB, free: 5.52 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.861e-05/0.01374, allocations: 350.7 kB / 285.2 MB, free: 5.168 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.01386, allocations: 93.22 kB / 285.3 MB, free: 5.074 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001312/0.01399, allocations: 148.1 kB / 285.4 MB, free: 4.914 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000215/0.0142, allocations: 237.7 kB / 285.6 MB, free: 4.66 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.0142, allocations: 0 / 285.6 MB, free: 4.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0004673/0.01467, allocations: 388.9 kB / 286 MB, free: 4.266 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.01468, allocations: 8 kB / 286 MB, free: 4.258 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.01469, allocations: 0 / 286 MB, free: 4.258 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004692/0.01516, allocations: 318.3 kB / 286.3 MB, free: 3.938 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001368/0.01529, allocations: 67.91 kB / 286.4 MB, free: 3.871 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001396/0.01669, allocations: 3.001 MB / 289.4 MB, free: 0.668 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001753/0.01687, allocations: 60.11 kB / 289.5 MB, free: 0.6094 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.273e-05/0.01689, allocations: 15.98 kB / 289.5 MB, free: 0.5938 MB / 266.7 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.000111/0.017, allocations: 145.1 kB / 289.6 MB, free: 452 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.751e-05/0.01706, allocations: 43.91 kB / 289.7 MB, free: 408 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004866/0.01754, allocations: 416.7 kB / 290.1 MB, free: 15.98 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.01755, allocations: 8 kB / 290.1 MB, free: 15.97 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.01755, allocations: 4 kB / 290.1 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.01756, allocations: 3.984 kB / 290.1 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008644/0.01842, allocations: 0.6572 MB / 290.7 MB, free: 15.27 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.01842, allocations: 4 kB / 290.8 MB, free: 15.27 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001393/0.01856, allocations: 59.91 kB / 290.8 MB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004163/0.01898, allocations: 298.3 kB / 291.1 MB, free: 14.91 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.76e-05/0.01901, allocations: 11.98 kB / 291.1 MB, free: 14.9 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001295/0.0203, allocations: 3.012 MB / 294.1 MB, free: 11.68 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.0203, allocations: 4 kB / 294.1 MB, free: 11.68 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005957/0.0209, allocations: 0.5574 MB / 294.7 MB, free: 11.09 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.664e-05/0.02099, allocations: 51.73 kB / 294.7 MB, free: 11.04 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.532e-05/0.02104, allocations: 20 kB / 294.8 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001671/0.02121, allocations: 52.03 kB / 294.8 MB, free: 10.97 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/0.02134, allocations: 100.3 kB / 294.9 MB, free: 10.88 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.219e-05/0.02136, allocations: 11.98 kB / 294.9 MB, free: 10.86 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.434e-05/0.02143, allocations: 86.75 kB / 295 MB, free: 10.78 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.02143, allocations: 0 / 295 MB, free: 10.78 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002676/0.0217, allocations: 123.9 kB / 295.1 MB, free: 10.66 MB / 282.7 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.0009191/0.02261, allocations: 456.6 kB / 295.6 MB, free: 10.36 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005796/0.02319, allocations: 0.5469 MB / 296.1 MB, free: 9.781 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.0232, allocations: 0 / 296.1 MB, free: 9.781 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003495/0.02355, allocations: 440.4 kB / 296.5 MB, free: 9.324 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002932/0.02384, allocations: 116.1 kB / 296.7 MB, free: 9.215 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.02508, allocations: 0.8059 MB / 297.5 MB, free: 8.379 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.688e-05/0.02515, allocations: 114.3 kB / 297.6 MB, free: 8.25 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.443e-05/0.02523, allocations: 39.36 kB / 297.6 MB, free: 8.215 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002486/0.02548, allocations: 119.3 kB / 297.7 MB, free: 8.098 MB / 282.7 MB Notification: Performance of SimCode: time 5.01e-07/0.02548, allocations: 0 / 297.7 MB, free: 8.098 MB / 282.7 MB Notification: Performance of Templates: time 0.1058/0.1313, allocations: 9.412 MB / 307.1 MB, free: 39.4 MB / 282.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.846562258899212]