Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002042/0.002042, allocations: 103.6 kB / 21.19 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001669/0.001669, allocations: 209.2 kB / 24.48 MB, free: 3.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.519/1.519, allocations: 230.6 MB / 258.2 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001636/0.001636, allocations: 43.92 kB / 379 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.334/0.3357, allocations: 53.37 MB / 432.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005405/0.3411, allocations: 2.966 MB / 435.3 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002453/0.3435, allocations: 1.083 MB / 436.4 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003334/0.3439, allocations: 7.938 kB / 436.4 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003754/0.3442, allocations: 83.23 kB / 436.5 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005162/0.3448, allocations: 194.6 kB / 436.7 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005192/0.3453, allocations: 207.6 kB / 436.9 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007327/0.346, allocations: 0.6667 MB / 437.5 MB, free: 1.496 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002293/0.3462, allocations: 96.95 kB / 437.6 MB, free: 1.398 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004518/0.3467, allocations: 315 kB / 437.9 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004069/0.3471, allocations: 286.9 kB / 438.2 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.813e-05/0.3472, allocations: 52 kB / 438.3 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000218/0.3474, allocations: 104 kB / 438.4 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001827/0.3476, allocations: 147.5 kB / 438.5 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002329/0.3478, allocations: 219 kB / 438.7 MB, free: 304 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007755/0.3486, allocations: 0.6528 MB / 439.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.3486, allocations: 3.984 kB / 439.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3486, allocations: 3.938 kB / 439.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.3486, allocations: 0 / 439.4 MB, free: 15.64 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.001537/0.3502, allocations: 0.7659 MB / 440.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.3502, allocations: 8.031 kB / 440.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002367/0.3504, allocations: 72.55 kB / 440.2 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005724/0.351, allocations: 286.2 kB / 440.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.785e-05/0.351, allocations: 29.38 kB / 440.5 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.649e-05/0.3511, allocations: 56.3 kB / 440.6 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009365/0.3521, allocations: 470.6 kB / 441 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.676e-05/0.3521, allocations: 7.938 kB / 441.1 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.083e-05/0.3522, allocations: 16 kB / 441.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/0.3522, allocations: 16 kB / 441.1 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001023/0.3532, allocations: 463.7 kB / 441.5 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002126/0.3553, allocations: 0.9237 MB / 442.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009334/0.3563, allocations: 405.9 kB / 442.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006438/0.3569, allocations: 254.2 kB / 443.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.062e-05/0.3569, allocations: 4.5 kB / 443.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.735e-05/0.357, allocations: 39.06 kB / 443.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 2.295e-06/0.357, allocations: 0 / 443.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.005401/0.3624, allocations: 2.018 MB / 445.2 MB, free: 9.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.029e-05/0.3624, allocations: 63.84 kB / 445.2 MB, free: 9.605 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000343/0.3628, allocations: 280.2 kB / 445.5 MB, free: 9.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.974e-05/0.3628, allocations: 45.69 kB / 445.5 MB, free: 9.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001581/0.363, allocations: 185.6 kB / 445.7 MB, free: 9.082 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002158/0.3632, allocations: 226.1 kB / 446 MB, free: 8.859 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002048/0.3634, allocations: 110.3 kB / 446.1 MB, free: 8.746 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001896/0.3636, allocations: 346.8 kB / 446.4 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005052/0.3641, allocations: 229.2 kB / 446.6 MB, free: 8.172 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005484/0.3647, allocations: 276.8 kB / 446.9 MB, free: 7.898 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008253/0.3655, allocations: 394.1 kB / 447.3 MB, free: 7.508 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.177e-06/0.3655, allocations: 4 kB / 447.3 MB, free: 7.504 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001729/0.3672, allocations: 0.7406 MB / 448 MB, free: 6.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.3672, allocations: 7.984 kB / 448 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.3672, allocations: 4.031 kB / 448 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009024/0.3682, allocations: 373.4 kB / 448.4 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003466/0.3685, allocations: 87.83 kB / 448.5 MB, free: 6.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001545/0.37, allocations: 1.398 MB / 449.9 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000507/0.3706, allocations: 80.02 kB / 450 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.333e-05/0.3706, allocations: 16 kB / 450 MB, free: 4.738 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.0002519/0.3708, allocations: 170.4 kB / 450.1 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/0.3709, allocations: 47.66 kB / 450.2 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001445/0.3711, allocations: 71.62 kB / 450.3 MB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.645e-06/0.3711, allocations: 4 kB / 450.3 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.3711, allocations: 0 / 450.3 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.3711, allocations: 7.984 kB / 450.3 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002803/0.3739, allocations: 1.259 MB / 451.5 MB, free: 3.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.3739, allocations: 3.984 kB / 451.5 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000367/0.3743, allocations: 83.89 kB / 451.6 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007743/0.3751, allocations: 345.6 kB / 452 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.306e-05/0.3751, allocations: 23.98 kB / 452 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001466/0.3766, allocations: 1.358 MB / 453.3 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.3766, allocations: 4.031 kB / 453.3 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002095/0.3787, allocations: 1.057 MB / 454.4 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002401/0.3789, allocations: 91.67 kB / 454.5 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.289e-05/0.379, allocations: 20 kB / 454.5 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004619/0.3795, allocations: 59.98 kB / 454.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002157/0.3797, allocations: 100.2 kB / 454.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.7e-05/0.3797, allocations: 27.97 kB / 454.7 MB, free: 15.87 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002373/0.38, allocations: 203.1 kB / 454.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.38, allocations: 4 kB / 454.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005139/0.3805, allocations: 128 kB / 455 MB, free: 15.54 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.001494/0.382, allocations: 419.3 kB / 455.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001341/0.3833, allocations: 0.5381 MB / 456 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3833, allocations: 0 / 456 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007532/0.3841, allocations: 326.9 kB / 456.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006512/0.3847, allocations: 84.88 kB / 456.4 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004068/0.3888, allocations: 1.528 MB / 457.9 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000275/0.3891, allocations: 225.2 kB / 458.1 MB, free: 12.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001344/0.3892, allocations: 47.42 kB / 458.2 MB, free: 12.47 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3892, allocations: 0 / 458.2 MB, free: 12.47 MB / 366.1 MB Notification: Performance of Templates: time 0.01325/0.4025, allocations: 9.252 MB / 467.4 MB, free: 3.227 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 8.650660322979093]