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.002316/0.002316, allocations: 99.53 kB / 20.97 MB, free: 3.453 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.002241/0.002241, allocations: 156.8 kB / 24.27 MB, free: 156 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 1.598/1.598, allocations: 177 MB / 204.5 MB, free: 5.629 MB / 186.7 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 1.904e-06/1.904e-06, allocations: 0 / 272.2 MB, free: 1.844 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.127e-05/3.317e-05, allocations: 8.984 kB / 272.2 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.008213/0.008247, allocations: 2.926 MB / 275.1 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003588/0.01184, allocations: 1.025 MB / 276.1 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003159/0.01215, allocations: 11.94 kB / 276.2 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004528/0.0126, allocations: 75.3 kB / 276.2 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000738/0.01334, allocations: 162.8 kB / 276.4 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000766/0.01411, allocations: 203.5 kB / 276.6 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001214/0.01532, allocations: 0.6084 MB / 277.2 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000293/0.01561, allocations: 79.03 kB / 277.3 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001066/0.01668, allocations: 371.3 kB / 277.6 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007626/0.01744, allocations: 239.4 kB / 277.9 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001863/0.01763, allocations: 44 kB / 277.9 MB, free: 12.08 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003812/0.01801, allocations: 107.9 kB / 278 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003016/0.01831, allocations: 127.5 kB / 278.1 MB, free: 11.85 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003948/0.01871, allocations: 171.6 kB / 278.3 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001383/0.02009, allocations: 0.6269 MB / 278.9 MB, free: 11.05 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.02009, allocations: 0 / 278.9 MB, free: 11.05 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.0201, allocations: 0 / 278.9 MB, free: 11.05 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.518e-05/0.02011, allocations: 0 / 278.9 MB, free: 11.05 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.002607/0.02272, allocations: 0.8034 MB / 279.7 MB, free: 10.21 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.554e-05/0.02277, allocations: 11.98 kB / 279.7 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003208/0.02309, allocations: 76.66 kB / 279.8 MB, free: 10.13 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008437/0.02394, allocations: 279.2 kB / 280.1 MB, free: 9.832 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.887e-05/0.02401, allocations: 29.38 kB / 280.1 MB, free: 9.805 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001454/0.02415, allocations: 40.36 kB / 280.2 MB, free: 9.766 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00162/0.02577, allocations: 414.9 kB / 280.6 MB, free: 9.355 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.259e-05/0.0258, allocations: 4.141 kB / 280.6 MB, free: 9.352 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.864e-05/0.02588, allocations: 16.38 kB / 280.6 MB, free: 9.336 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.378e-05/0.02591, allocations: 11.94 kB / 280.6 MB, free: 9.324 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001875/0.02778, allocations: 415.7 kB / 281 MB, free: 8.914 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004488/0.03227, allocations: 1.157 MB / 282.2 MB, free: 7.707 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001603/0.03387, allocations: 369.6 kB / 282.5 MB, free: 7.328 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008202/0.03469, allocations: 213.1 kB / 282.7 MB, free: 7.113 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.007e-05/0.03477, allocations: 8.5 kB / 282.7 MB, free: 7.105 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.981e-05/0.03482, allocations: 37.89 kB / 282.8 MB, free: 7.059 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.725e-06/0.03483, allocations: 0 / 282.8 MB, free: 7.059 MB / 266.7 MB Notification: Performance of matching and sorting (n=54): time 0.009265/0.04409, allocations: 1.884 MB / 284.7 MB, free: 5.109 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.451e-05/0.04418, allocations: 59.84 kB / 284.7 MB, free: 5.035 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007234/0.0449, allocations: 344.2 kB / 285.1 MB, free: 4.684 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.589e-05/0.045, allocations: 41.7 kB / 285.1 MB, free: 4.637 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002787/0.04527, allocations: 231.7 kB / 285.3 MB, free: 4.406 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003384/0.04561, allocations: 202.4 kB / 285.5 MB, free: 4.207 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003643/0.04598, allocations: 119.9 kB / 285.6 MB, free: 4.082 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004534/0.04643, allocations: 0.5274 MB / 286.2 MB, free: 3.543 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008529/0.04728, allocations: 213.2 kB / 286.4 MB, free: 3.336 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00111/0.04839, allocations: 301.1 kB / 286.7 MB, free: 3.016 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001601/0.04999, allocations: 408 kB / 287.1 MB, free: 2.594 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.05, allocations: 0 / 287.1 MB, free: 2.594 MB / 266.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.003091/0.05309, allocations: 0.7266 MB / 287.8 MB, free: 1.844 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.225e-05/0.05312, allocations: 7.938 kB / 287.8 MB, free: 1.836 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.05313, allocations: 4 kB / 287.8 MB, free: 1.832 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002101/0.05523, allocations: 430.9 kB / 288.2 MB, free: 1.398 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005122/0.05574, allocations: 59.91 kB / 288.3 MB, free: 1.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007177/0.06292, allocations: 4.691 MB / 293 MB, free: 12.37 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007376/0.06366, allocations: 60.22 kB / 293 MB, free: 12.31 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.534e-05/0.06375, allocations: 16 kB / 293 MB, free: 12.3 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.0004527/0.0642, allocations: 213 kB / 293.3 MB, free: 12.08 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002597/0.06446, allocations: 51.77 kB / 293.3 MB, free: 12.03 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003091/0.06755, allocations: 0.6955 MB / 294 MB, free: 11.31 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-05/0.06757, allocations: 8 kB / 294 MB, free: 11.3 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.06757, allocations: 0 / 294 MB, free: 11.3 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.769e-05/0.06765, allocations: 3.984 kB / 294 MB, free: 11.3 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004468/0.07212, allocations: 1.186 MB / 295.2 MB, free: 10.06 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.858e-06/0.07213, allocations: 7.875 kB / 295.2 MB, free: 10.05 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004988/0.07263, allocations: 55.97 kB / 295.3 MB, free: 9.996 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002018/0.07465, allocations: 406.7 kB / 295.7 MB, free: 9.586 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-05/0.07474, allocations: 15.98 kB / 295.7 MB, free: 9.57 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007442/0.08218, allocations: 4.652 MB / 300.3 MB, free: 4.641 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.08218, allocations: 0 / 300.3 MB, free: 4.641 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003993/0.08617, allocations: 1.048 MB / 301.4 MB, free: 3.566 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004393/0.08661, allocations: 87.67 kB / 301.5 MB, free: 3.48 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001752/0.08679, allocations: 19.94 kB / 301.5 MB, free: 3.461 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000754/0.08754, allocations: 52.05 kB / 301.5 MB, free: 3.41 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004233/0.08797, allocations: 108.3 kB / 301.6 MB, free: 3.301 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.78e-05/0.08805, allocations: 19.98 kB / 301.7 MB, free: 3.281 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004325/0.08849, allocations: 233.1 kB / 301.9 MB, free: 3.055 MB / 282.7 MB Notification: Performance of sort global known variables: time 2e-07/0.08849, allocations: 0 / 301.9 MB, free: 3.055 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009793/0.08947, allocations: 120 kB / 302 MB, free: 2.938 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.003854/0.09332, allocations: 400.2 kB / 302.4 MB, free: 2.668 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.003055/0.09638, allocations: 0.8882 MB / 303.3 MB, free: 1.742 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.09638, allocations: 3.938 kB / 303.3 MB, free: 1.738 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001866/0.09825, allocations: 0.6422 MB / 303.9 MB, free: 1.059 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.09931, allocations: 112.5 kB / 304 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.106/0.2053, allocations: 0.9188 MB / 305 MB, free: 41.7 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002305/0.2055, allocations: 199.2 kB / 305.2 MB, free: 41.61 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001838/0.2057, allocations: 32.72 kB / 305.2 MB, free: 41.61 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000139/0.2058, allocations: 39.72 kB / 305.2 MB, free: 41.61 MB / 282.7 MB Notification: Performance of SimCode: time 1.352e-06/0.2058, allocations: 1.25 kB / 305.2 MB, free: 41.61 MB / 282.7 MB Notification: Performance of Templates: time 0.0146/0.2204, allocations: 8.808 MB / 314 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 -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","/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.869411655003205]