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.0009831/0.0009831, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.001018/0.001018, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 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.9348/0.9348, allocations: 177 MB / 204.8 MB, free: 5.586 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.123e-06/1.123e-06, allocations: 0 / 272.9 MB, free: 1.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.461e-05/1.573e-05, allocations: 5.266 kB / 272.9 MB, free: 1.465 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003063/0.003078, allocations: 2.969 MB / 275.9 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001241/0.00432, allocations: 1.037 MB / 276.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001219/0.004441, allocations: 4 kB / 276.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002463/0.004688, allocations: 83.22 kB / 277 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002724/0.00496, allocations: 158.8 kB / 277.2 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002676/0.005228, allocations: 207.6 kB / 277.4 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003983/0.005626, allocations: 0.6084 MB / 278 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001497/0.005776, allocations: 79.02 kB / 278 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003012/0.006077, allocations: 367.3 kB / 278.4 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002333/0.00631, allocations: 239.4 kB / 278.6 MB, free: 11.7 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.175e-05/0.006372, allocations: 48 kB / 278.7 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001253/0.006497, allocations: 99.86 kB / 278.8 MB, free: 11.56 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001176/0.006615, allocations: 135.5 kB / 278.9 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.00674, allocations: 171.6 kB / 279.1 MB, free: 11.26 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004042/0.007144, allocations: 466.4 kB / 279.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.033e-06/0.007146, allocations: 0 / 279.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.007147, allocations: 0 / 279.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.007153, allocations: 4 kB / 279.5 MB, free: 10.8 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.001145/0.008298, allocations: 0.7765 MB / 280.3 MB, free: 9.984 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.008337, allocations: 15.98 kB / 280.3 MB, free: 9.969 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001567/0.008494, allocations: 72.66 kB / 280.4 MB, free: 9.898 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004096/0.008903, allocations: 284 kB / 280.7 MB, free: 9.59 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.754e-05/0.008941, allocations: 25.38 kB / 280.7 MB, free: 9.566 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.999e-05/0.009011, allocations: 36.38 kB / 280.7 MB, free: 9.531 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006364/0.009647, allocations: 354.8 kB / 281.1 MB, free: 9.18 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/0.009668, allocations: 8.141 kB / 281.1 MB, free: 9.172 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.995e-05/0.009708, allocations: 16.31 kB / 281.1 MB, free: 9.156 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.422e-05/0.009722, allocations: 15.94 kB / 281.1 MB, free: 9.141 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000561/0.01028, allocations: 257.8 kB / 281.4 MB, free: 8.887 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001814/0.0121, allocations: 1.038 MB / 282.4 MB, free: 7.801 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006566/0.01275, allocations: 285.6 kB / 282.7 MB, free: 7.504 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00027/0.01302, allocations: 145.1 kB / 282.8 MB, free: 7.355 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.684e-05/0.01306, allocations: 8.5 kB / 282.8 MB, free: 7.348 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.208e-05/0.01309, allocations: 45.83 kB / 282.9 MB, free: 7.293 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.064e-06/0.01309, allocations: 4 kB / 282.9 MB, free: 7.289 MB / 266.7 MB Notification: Performance of matching and sorting (n=54): time 0.003443/0.01654, allocations: 1.545 MB / 284.4 MB, free: 5.68 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.431e-05/0.01657, allocations: 55.91 kB / 284.5 MB, free: 5.609 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002558/0.01683, allocations: 300.3 kB / 284.8 MB, free: 5.301 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.858e-05/0.01688, allocations: 41.7 kB / 284.8 MB, free: 5.254 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.01699, allocations: 227.6 kB / 285 MB, free: 5.027 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001386/0.01713, allocations: 190.5 kB / 285.2 MB, free: 4.84 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001599/0.01729, allocations: 107.9 kB / 285.3 MB, free: 4.727 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.01744, allocations: 0.5157 MB / 285.9 MB, free: 4.199 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000292/0.01773, allocations: 133.2 kB / 286 MB, free: 4.07 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003395/0.01807, allocations: 221 kB / 286.2 MB, free: 3.828 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004835/0.01855, allocations: 284 kB / 286.5 MB, free: 3.527 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.01855, allocations: 0 / 286.5 MB, free: 3.527 MB / 266.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001101/0.01966, allocations: 0.5314 MB / 287 MB, free: 2.973 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/0.01968, allocations: 10.75 kB / 287 MB, free: 2.965 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.01968, allocations: 4 kB / 287 MB, free: 2.961 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000816/0.0205, allocations: 350.8 kB / 287.4 MB, free: 2.605 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000219/0.02072, allocations: 63.91 kB / 287.4 MB, free: 2.543 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002535/0.02326, allocations: 4.451 MB / 291.9 MB, free: 13.81 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002972/0.02355, allocations: 56.22 kB / 291.9 MB, free: 13.76 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.876e-05/0.0236, allocations: 23.98 kB / 292 MB, free: 13.73 MB / 282.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.0001688/0.02377, allocations: 185 kB / 292.1 MB, free: 13.54 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.02389, allocations: 59.75 kB / 292.2 MB, free: 13.48 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001058/0.02495, allocations: 0.5511 MB / 292.7 MB, free: 12.91 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.02495, allocations: 8 kB / 292.8 MB, free: 12.91 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.02496, allocations: 0 / 292.8 MB, free: 12.91 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.02496, allocations: 3.984 kB / 292.8 MB, free: 12.9 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001633/0.0266, allocations: 0.991 MB / 293.7 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.0266, allocations: 3.938 kB / 293.8 MB, free: 11.85 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000199/0.0268, allocations: 47.92 kB / 293.8 MB, free: 11.8 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007215/0.02752, allocations: 340.2 kB / 294.1 MB, free: 11.46 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.814e-05/0.02757, allocations: 19.97 kB / 294.2 MB, free: 11.44 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002381/0.02995, allocations: 4.456 MB / 298.6 MB, free: 6.711 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.02995, allocations: 0 / 298.6 MB, free: 6.711 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001361/0.03131, allocations: 0.7821 MB / 299.4 MB, free: 5.902 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001673/0.03148, allocations: 91.83 kB / 299.5 MB, free: 5.812 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.867e-05/0.03156, allocations: 15.94 kB / 299.5 MB, free: 5.797 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002876/0.03185, allocations: 51.94 kB / 299.5 MB, free: 5.746 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002032/0.03205, allocations: 100.3 kB / 299.6 MB, free: 5.645 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-05/0.03209, allocations: 19.98 kB / 299.7 MB, free: 5.625 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001469/0.03224, allocations: 209.1 kB / 299.9 MB, free: 5.422 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.03224, allocations: 0 / 299.9 MB, free: 5.422 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004568/0.0327, allocations: 116 kB / 300 MB, free: 5.309 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.0009393/0.03364, allocations: 374.3 kB / 300.3 MB, free: 5.035 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001098/0.03473, allocations: 0.7398 MB / 301.1 MB, free: 4.258 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.03474, allocations: 0 / 301.1 MB, free: 4.258 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006408/0.03538, allocations: 0.5758 MB / 301.7 MB, free: 3.645 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005165/0.03589, allocations: 104.1 kB / 301.8 MB, free: 3.543 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001897/0.03779, allocations: 0.8963 MB / 302.7 MB, free: 2.617 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001026/0.03789, allocations: 110.3 kB / 302.8 MB, free: 2.484 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001198/0.03801, allocations: 31.28 kB / 302.8 MB, free: 2.453 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001113/0.03812, allocations: 36.48 kB / 302.8 MB, free: 2.418 MB / 282.7 MB Notification: Performance of SimCode: time 9.52e-07/0.03812, allocations: 0 / 302.8 MB, free: 2.418 MB / 282.7 MB Notification: Performance of Templates: time 0.1339/0.1721, allocations: 9.442 MB / 312.3 MB, free: 38.39 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 -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.978808880317956]