Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.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.001041/0.001041, allocations: 88.28 kB / 21.44 MB, free: 3.121 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.005395/0.005395, allocations: 149.5 kB / 24.69 MB, free: 9.441 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.8797/0.8797, allocations: 177 MB / 204.9 MB, free: 5.758 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.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.28e-05/2.423e-05, allocations: 2.281 kB / 325.8 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003016/0.00304, allocations: 2.979 MB / 328.8 MB, free: 12.4 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001263/0.004303, allocations: 1.084 MB / 329.8 MB, free: 11.31 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000154/0.004457, allocations: 7.938 kB / 329.8 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002661/0.004723, allocations: 91.09 kB / 329.9 MB, free: 11.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002935/0.005017, allocations: 198.5 kB / 330.1 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000302/0.005319, allocations: 207.6 kB / 330.3 MB, free: 10.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004655/0.005784, allocations: 0.6859 MB / 331 MB, free: 10.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001687/0.005953, allocations: 84.7 kB / 331.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000396/0.006349, allocations: 415.1 kB / 331.5 MB, free: 9.637 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002639/0.006613, allocations: 255.4 kB / 331.8 MB, free: 9.387 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.645e-05/0.006669, allocations: 52 kB / 331.8 MB, free: 9.336 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001462/0.006815, allocations: 115.9 kB / 331.9 MB, free: 9.223 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001306/0.006946, allocations: 143.5 kB / 332.1 MB, free: 9.082 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001263/0.007072, allocations: 187.5 kB / 332.2 MB, free: 8.898 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005524/0.007625, allocations: 0.6893 MB / 332.9 MB, free: 8.207 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.007628, allocations: 4 kB / 332.9 MB, free: 8.203 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.00763, allocations: 0 / 332.9 MB, free: 8.203 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.643e-06/0.007636, allocations: 0 / 332.9 MB, free: 8.203 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.0009622/0.008599, allocations: 0.7581 MB / 333.7 MB, free: 7.414 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.008636, allocations: 15.98 kB / 333.7 MB, free: 7.398 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000152/0.008788, allocations: 64.55 kB / 333.8 MB, free: 7.336 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003491/0.009137, allocations: 289.4 kB / 334.1 MB, free: 7.023 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.112e-05/0.009168, allocations: 41.31 kB / 334.1 MB, free: 6.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.274e-05/0.009231, allocations: 44.33 kB / 334.1 MB, free: 6.938 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005504/0.009781, allocations: 466.9 kB / 334.6 MB, free: 6.477 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.009801, allocations: 8.188 kB / 334.6 MB, free: 6.469 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.17e-05/0.009833, allocations: 20.31 kB / 334.6 MB, free: 6.449 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.637e-06/0.009842, allocations: 11.94 kB / 334.6 MB, free: 6.438 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005833/0.01042, allocations: 459.7 kB / 335.1 MB, free: 5.988 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001236/0.01166, allocations: 0.9238 MB / 336 MB, free: 5.023 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005863/0.01225, allocations: 412.5 kB / 336.4 MB, free: 4.609 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003266/0.01257, allocations: 242.2 kB / 336.6 MB, free: 4.371 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.144e-05/0.01261, allocations: 8.5 kB / 336.7 MB, free: 4.363 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.098e-05/0.01263, allocations: 43.06 kB / 336.7 MB, free: 4.312 MB / 298.7 MB Notification: Performance of pre-optimization done (n=55): time 2.234e-06/0.01263, allocations: 0 / 336.7 MB, free: 4.312 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.002987/0.01562, allocations: 2.01 MB / 338.7 MB, free: 2.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.797e-05/0.01565, allocations: 59.91 kB / 338.8 MB, free: 2.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002134/0.01587, allocations: 288.2 kB / 339 MB, free: 1.887 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.826e-05/0.01591, allocations: 45.7 kB / 339.1 MB, free: 1.836 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.355e-05/0.016, allocations: 189.6 kB / 339.3 MB, free: 1.648 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/0.01612, allocations: 218.2 kB / 339.5 MB, free: 1.434 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.01624, allocations: 106.3 kB / 339.6 MB, free: 1.324 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.01635, allocations: 354.7 kB / 339.9 MB, free: 0.9648 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000304/0.01665, allocations: 225.2 kB / 340.2 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003193/0.01697, allocations: 280.8 kB / 340.4 MB, free: 480 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004813/0.01745, allocations: 394.1 kB / 340.8 MB, free: 80 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.01745, allocations: 0 / 340.8 MB, free: 80 kB / 298.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.000948/0.0184, allocations: 0.7446 MB / 341.6 MB, free: 15.32 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.01842, allocations: 4 kB / 341.6 MB, free: 15.31 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.01842, allocations: 0 / 341.6 MB, free: 15.31 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005332/0.01896, allocations: 377.4 kB / 341.9 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000169/0.01912, allocations: 87.83 kB / 342 MB, free: 14.85 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008773/0.02, allocations: 1.394 MB / 343.4 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002319/0.02023, allocations: 76.06 kB / 343.5 MB, free: 13.33 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.592e-05/0.02026, allocations: 19.98 kB / 343.5 MB, free: 13.31 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (55): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,10), (1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0001487/0.02041, allocations: 173.5 kB / 343.7 MB, free: 13.13 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.577e-05/0.02046, allocations: 47.7 kB / 343.7 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.798e-05/0.02053, allocations: 63.64 kB / 343.8 MB, free: 13.02 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/0.02054, allocations: 11.94 kB / 343.8 MB, free: 13.01 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.02054, allocations: 3.984 kB / 343.8 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.02055, allocations: 0 / 343.8 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001566/0.02211, allocations: 1.263 MB / 345.1 MB, free: 11.69 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.02212, allocations: 12.09 kB / 345.1 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001873/0.02231, allocations: 83.83 kB / 345.2 MB, free: 11.6 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004308/0.02274, allocations: 345.4 kB / 345.5 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.18e-05/0.02277, allocations: 19.98 kB / 345.5 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007909/0.02356, allocations: 1.367 MB / 346.9 MB, free: 9.816 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.02356, allocations: 0 / 346.9 MB, free: 9.816 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001177/0.02474, allocations: 1.041 MB / 347.9 MB, free: 8.73 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001365/0.02487, allocations: 91.81 kB / 348 MB, free: 8.641 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.751e-05/0.02493, allocations: 24 kB / 348 MB, free: 8.617 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002055/0.02514, allocations: 56 kB / 348.1 MB, free: 8.562 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.02528, allocations: 112.2 kB / 348.2 MB, free: 8.453 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.692e-05/0.02531, allocations: 27.97 kB / 348.2 MB, free: 8.426 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001296/0.02544, allocations: 199.1 kB / 348.4 MB, free: 8.234 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02544, allocations: 0 / 348.4 MB, free: 8.234 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003016/0.02574, allocations: 131.9 kB / 348.5 MB, free: 8.105 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,8), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006827/0.02642, allocations: 418.1 kB / 349 MB, free: 7.82 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000791/0.02721, allocations: 0.5381 MB / 349.5 MB, free: 7.281 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.02722, allocations: 0 / 349.5 MB, free: 7.281 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004044/0.02762, allocations: 322.6 kB / 349.8 MB, free: 6.965 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004102/0.02803, allocations: 86.11 kB / 349.9 MB, free: 6.883 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002092/0.03012, allocations: 1.375 MB / 351.3 MB, free: 5.465 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001419/0.03026, allocations: 229.2 kB / 351.5 MB, free: 5.215 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.933e-05/0.03035, allocations: 44.48 kB / 351.5 MB, free: 5.172 MB / 314.7 MB Notification: Performance of SimCode: time 8.92e-07/0.03036, allocations: 0 / 351.5 MB, free: 5.172 MB / 314.7 MB Notification: Performance of Templates: time 0.007882/0.03824, allocations: 9.258 MB / 360.8 MB, free: 11.92 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.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.969002346508205]