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.001462/0.001462, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001642/0.001642, allocations: 204.4 kB / 23.72 MB, free: 4.391 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.542/1.542, allocations: 230.5 MB / 257.4 MB, free: 7.754 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.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 0.002119/0.002119, allocations: 59.89 kB / 378.2 MB, free: 2.309 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2939/0.296, allocations: 53.42 MB / 431.6 MB, free: 6.504 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.00478/0.3008, allocations: 2.957 MB / 434.6 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002049/0.3028, allocations: 1.083 MB / 435.7 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001955/0.303, allocations: 7.938 kB / 435.7 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003503/0.3034, allocations: 91.11 kB / 435.8 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004527/0.3038, allocations: 182.7 kB / 436 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004315/0.3042, allocations: 215.7 kB / 436.2 MB, free: 1.961 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006768/0.3049, allocations: 0.6705 MB / 436.8 MB, free: 1.289 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002491/0.3052, allocations: 83.23 kB / 436.9 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004326/0.3056, allocations: 311.1 kB / 437.2 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003974/0.306, allocations: 298.8 kB / 437.5 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.805e-05/0.3061, allocations: 48 kB / 437.6 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002043/0.3063, allocations: 108 kB / 437.7 MB, free: 464 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001698/0.3065, allocations: 139.6 kB / 437.8 MB, free: 324 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002313/0.3067, allocations: 231 kB / 438 MB, free: 92 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008017/0.3075, allocations: 0.6496 MB / 438.7 MB, free: 15.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3075, allocations: 0 / 438.7 MB, free: 15.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3075, allocations: 0 / 438.7 MB, free: 15.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.168e-05/0.3075, allocations: 0 / 438.7 MB, free: 15.44 MB / 350.1 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.001593/0.3091, allocations: 0.7776 MB / 439.5 MB, free: 14.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.3091, allocations: 11.98 kB / 439.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002369/0.3094, allocations: 68.55 kB / 439.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005985/0.31, allocations: 278.3 kB / 439.8 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.652e-05/0.31, allocations: 29.38 kB / 439.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.742e-05/0.3101, allocations: 56.27 kB / 439.9 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009483/0.3111, allocations: 474.6 kB / 440.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.733e-05/0.3111, allocations: 7.938 kB / 440.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.96e-05/0.3111, allocations: 16 kB / 440.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.3112, allocations: 15.94 kB / 440.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009722/0.3121, allocations: 463.7 kB / 440.8 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002002/0.3141, allocations: 0.9238 MB / 441.8 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009354/0.3151, allocations: 404.1 kB / 442.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005833/0.3157, allocations: 253.4 kB / 442.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.571e-05/0.3157, allocations: 8.5 kB / 442.4 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.472e-05/0.3157, allocations: 39.06 kB / 442.5 MB, free: 11.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 2.044e-06/0.3157, allocations: 0 / 442.5 MB, free: 11.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.00518/0.3209, allocations: 2.006 MB / 444.5 MB, free: 9.492 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.258e-05/0.321, allocations: 75.72 kB / 444.5 MB, free: 9.406 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003714/0.3213, allocations: 280.2 kB / 444.8 MB, free: 9.121 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.839e-05/0.3214, allocations: 41.7 kB / 444.8 MB, free: 9.074 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000152/0.3215, allocations: 185.6 kB / 445 MB, free: 8.887 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002025/0.3218, allocations: 222.2 kB / 445.2 MB, free: 8.668 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000187/0.3219, allocations: 110.3 kB / 445.4 MB, free: 8.555 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.3221, allocations: 350.8 kB / 445.7 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004989/0.3226, allocations: 229.2 kB / 445.9 MB, free: 7.977 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005455/0.3232, allocations: 276.8 kB / 446.2 MB, free: 7.703 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007976/0.3239, allocations: 394.1 kB / 446.6 MB, free: 7.312 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.324, allocations: 0 / 446.6 MB, free: 7.312 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001629/0.3256, allocations: 0.7522 MB / 447.3 MB, free: 6.547 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.3256, allocations: 4 kB / 447.3 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.3256, allocations: 0 / 447.3 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000871/0.3265, allocations: 377.4 kB / 447.7 MB, free: 6.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003251/0.3268, allocations: 95.89 kB / 447.8 MB, free: 6.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001475/0.3283, allocations: 1.394 MB / 449.2 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004765/0.3288, allocations: 71.91 kB / 449.3 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.494e-05/0.3288, allocations: 19.98 kB / 449.3 MB, free: 4.539 MB / 350.1 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.0002308/0.329, allocations: 174.5 kB / 449.4 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.755e-05/0.3291, allocations: 47.66 kB / 449.5 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001388/0.3293, allocations: 63.69 kB / 449.6 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.3293, allocations: 4 kB / 449.6 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.3293, allocations: 0 / 449.6 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-06/0.3293, allocations: 7.984 kB / 449.6 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002739/0.332, allocations: 1.263 MB / 450.8 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.332, allocations: 0 / 450.8 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003642/0.3324, allocations: 92.03 kB / 450.9 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007519/0.3331, allocations: 341.5 kB / 451.3 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.265e-05/0.3332, allocations: 23.98 kB / 451.3 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001414/0.3346, allocations: 1.358 MB / 452.6 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/0.3346, allocations: 4.031 kB / 452.6 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002109/0.3367, allocations: 1.049 MB / 453.7 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000242/0.337, allocations: 95.67 kB / 453.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.97e-05/0.3371, allocations: 23.98 kB / 453.8 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004564/0.3375, allocations: 59.94 kB / 453.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000226/0.3377, allocations: 104.2 kB / 454 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.83e-05/0.3378, allocations: 23.98 kB / 454 MB, free: 15.67 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002328/0.338, allocations: 203.2 kB / 454.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.338, allocations: 7.938 kB / 454.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005013/0.3385, allocations: 128 kB / 454.3 MB, free: 15.34 MB / 366.1 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.001553/0.3401, allocations: 401.9 kB / 454.7 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0014/0.3415, allocations: 0.542 MB / 455.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.3415, allocations: 4.062 kB / 455.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008147/0.3423, allocations: 322.6 kB / 455.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006529/0.343, allocations: 92.84 kB / 455.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004042/0.347, allocations: 1.48 MB / 457.1 MB, free: 12.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002415/0.3472, allocations: 233.2 kB / 457.4 MB, free: 12.33 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000186/0.3474, allocations: 43.28 kB / 457.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.3475, allocations: 39.42 kB / 457.5 MB, free: 12.25 MB / 366.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3475, allocations: 0 / 457.5 MB, free: 12.25 MB / 366.1 MB Notification: Performance of Templates: time 0.01723/0.3648, allocations: 9.137 MB / 466.6 MB, free: 3.191 MB / 366.1 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: 5.063605222851038]