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.001271/0.001271, allocations: 112.9 kB / 19.17 MB, free: 3.891 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.001366/0.001366, allocations: 210.5 kB / 22.13 MB, free: 0.9375 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.473/1.473, allocations: 230.2 MB / 255.2 MB, free: 15.39 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.001842/0.001842, allocations: 63.89 kB / 374.5 MB, free: 9.941 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09764/0.09948, allocations: 53.32 MB / 427.8 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004522/0.104, allocations: 2.967 MB / 430.8 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00183/0.1058, allocations: 1.052 MB / 431.8 MB, free: 492 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001395/0.106, allocations: 7.938 kB / 431.9 MB, free: 484 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000281/0.1063, allocations: 83.3 kB / 431.9 MB, free: 400 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003491/0.1066, allocations: 158.9 kB / 432.1 MB, free: 240 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003411/0.1069, allocations: 191.6 kB / 432.3 MB, free: 48 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006706/0.1076, allocations: 0.5969 MB / 432.9 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001909/0.1078, allocations: 86.69 kB / 433 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003189/0.1081, allocations: 259.2 kB / 433.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004164/0.1085, allocations: 298.9 kB / 433.5 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001023/0.1086, allocations: 48 kB / 433.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001943/0.1088, allocations: 95.98 kB / 433.6 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001819/0.109, allocations: 131.5 kB / 433.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002415/0.1093, allocations: 234.9 kB / 434 MB, free: 14.31 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000685/0.1099, allocations: 0.5876 MB / 434.6 MB, free: 13.72 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.1099, allocations: 0 / 434.6 MB, free: 13.72 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1099, allocations: 4 kB / 434.6 MB, free: 13.72 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.697e-06/0.11, allocations: 0 / 434.6 MB, free: 13.72 MB / 366.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.001789/0.1117, allocations: 0.7869 MB / 435.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.1118, allocations: 8.031 kB / 435.4 MB, free: 12.87 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001271/0.1119, allocations: 52.59 kB / 435.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005323/0.1124, allocations: 326.7 kB / 435.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.489e-05/0.1125, allocations: 29.38 kB / 435.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.227e-05/0.1126, allocations: 36.38 kB / 435.8 MB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009268/0.1135, allocations: 438.6 kB / 436.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.433e-05/0.1135, allocations: 7.953 kB / 436.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.717e-05/0.1136, allocations: 12 kB / 436.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.554e-05/0.1136, allocations: 15.98 kB / 436.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00106/0.1146, allocations: 435.7 kB / 436.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002672/0.1173, allocations: 1.277 MB / 438 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009639/0.1183, allocations: 388.3 kB / 438.4 MB, free: 9.766 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005402/0.1188, allocations: 222.1 kB / 438.6 MB, free: 9.543 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.999e-05/0.1189, allocations: 12.42 kB / 438.6 MB, free: 9.531 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.521e-05/0.1189, allocations: 38.98 kB / 438.6 MB, free: 9.484 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.114e-06/0.1189, allocations: 0 / 438.6 MB, free: 9.484 MB / 366.1 MB Notification: Performance of matching and sorting (n=54): time 0.006117/0.125, allocations: 2.241 MB / 440.9 MB, free: 7.113 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.857e-05/0.1251, allocations: 71.72 kB / 440.9 MB, free: 7.031 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003688/0.1254, allocations: 274.7 kB / 441.2 MB, free: 6.758 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.379e-05/0.1255, allocations: 37.7 kB / 441.3 MB, free: 6.715 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001451/0.1257, allocations: 180.9 kB / 441.4 MB, free: 6.531 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001927/0.1259, allocations: 194.4 kB / 441.6 MB, free: 6.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002152/0.1261, allocations: 102.2 kB / 441.7 MB, free: 6.234 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.1262, allocations: 342.8 kB / 442.1 MB, free: 5.891 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005523/0.1268, allocations: 225 kB / 442.3 MB, free: 5.668 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005898/0.1274, allocations: 283.2 kB / 442.6 MB, free: 5.375 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009035/0.1283, allocations: 395.7 kB / 442.9 MB, free: 4.969 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.1283, allocations: 4 kB / 442.9 MB, free: 4.965 MB / 366.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001779/0.1301, allocations: 0.712 MB / 443.7 MB, free: 4.234 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.1301, allocations: 4 kB / 443.7 MB, free: 4.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.477e-06/0.1301, allocations: 4 kB / 443.7 MB, free: 4.227 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001178/0.1313, allocations: 430.3 kB / 444.1 MB, free: 3.797 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002985/0.1316, allocations: 71.84 kB / 444.2 MB, free: 3.727 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1973/0.3289, allocations: 3.646 MB / 447.8 MB, free: 23.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006873/0.3295, allocations: 77.34 kB / 447.9 MB, free: 23.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.201e-05/0.3296, allocations: 19.23 kB / 447.9 MB, free: 23.94 MB / 366.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.0002282/0.3298, allocations: 163.8 kB / 448.1 MB, free: 23.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.3299, allocations: 39.61 kB / 448.1 MB, free: 23.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001739/0.3317, allocations: 0.7098 MB / 448.8 MB, free: 23.76 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.3317, allocations: 8.281 kB / 448.8 MB, free: 23.76 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.3317, allocations: 3.562 kB / 448.8 MB, free: 23.76 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.3317, allocations: 4.062 kB / 448.8 MB, free: 23.76 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002063/0.3338, allocations: 1.272 MB / 450.1 MB, free: 23.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.3338, allocations: 1.094 kB / 450.1 MB, free: 23.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002887/0.334, allocations: 58.39 kB / 450.1 MB, free: 23.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009618/0.335, allocations: 407.8 kB / 450.5 MB, free: 23.4 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.578e-05/0.3351, allocations: 15.78 kB / 450.6 MB, free: 23.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002174/0.3372, allocations: 3.619 MB / 454.2 MB, free: 20.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.3372, allocations: 3.812 kB / 454.2 MB, free: 20.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001948/0.3392, allocations: 1.016 MB / 455.2 MB, free: 19.65 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001946/0.3394, allocations: 166 kB / 455.4 MB, free: 19.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.691e-05/0.3395, allocations: 20.19 kB / 455.4 MB, free: 19.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004965/0.3399, allocations: 69.72 kB / 455.4 MB, free: 19.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002261/0.3402, allocations: 95.86 kB / 455.5 MB, free: 19.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.572e-05/0.3402, allocations: 21.53 kB / 455.6 MB, free: 19.49 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001991/0.3404, allocations: 191.3 kB / 455.8 MB, free: 19.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3404, allocations: 3.812 kB / 455.8 MB, free: 19.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005301/0.3409, allocations: 122.9 kB / 455.9 MB, free: 19.37 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.001319/0.3423, allocations: 375.6 kB / 456.2 MB, free: 19.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001639/0.3439, allocations: 0.7563 MB / 457 MB, free: 18.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.3439, allocations: 1.875 kB / 457 MB, free: 18.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008901/0.3448, allocations: 0.521 MB / 457.5 MB, free: 18.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005766/0.3454, allocations: 69.25 kB / 457.6 MB, free: 18.51 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00211/0.3475, allocations: 1.056 MB / 458.6 MB, free: 17.9 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002742/0.3478, allocations: 0.807 MB / 459.5 MB, free: 17.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000126/0.3479, allocations: 37.8 kB / 459.5 MB, free: 17.19 MB / 366.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3479, allocations: 1.094 kB / 459.5 MB, free: 17.19 MB / 366.1 MB Notification: Performance of Templates: time 0.01481/0.3627, allocations: 9.513 MB / 469 MB, free: 14.76 MB / 366.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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.845476367045194]