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.001345/0.001345, allocations: 120.4 kB / 17.79 MB, free: 5.285 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.001366/0.001366, allocations: 199.3 kB / 20.74 MB, free: 2.344 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.541/1.541, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.001584/0.001584, allocations: 47.92 kB / 373.5 MB, free: 9.758 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.114, allocations: 53.33 MB / 426.8 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.0052/0.1192, allocations: 3.188 MB / 430 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.22/0.3391, allocations: 1.127 MB / 431.1 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004077/0.3395, allocations: 13.53 kB / 431.1 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003347/0.3399, allocations: 84.47 kB / 431.2 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000447/0.3403, allocations: 191.7 kB / 431.4 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004644/0.3408, allocations: 200.8 kB / 431.6 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006184/0.3414, allocations: 0.6659 MB / 432.3 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002065/0.3416, allocations: 95.19 kB / 432.3 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004071/0.342, allocations: 311.3 kB / 432.7 MB, free: 8.008 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003575/0.3424, allocations: 322.9 kB / 433 MB, free: 7.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.158e-05/0.3425, allocations: 48.78 kB / 433 MB, free: 7.957 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001952/0.3427, allocations: 108.9 kB / 433.1 MB, free: 7.953 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.3428, allocations: 144 kB / 433.3 MB, free: 7.934 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002099/0.343, allocations: 263.6 kB / 433.5 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006269/0.3436, allocations: 0.6511 MB / 434.2 MB, free: 7.762 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3436, allocations: 1.375 kB / 434.2 MB, free: 7.762 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3436, allocations: 0 / 434.2 MB, free: 7.762 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.3436, allocations: 0.875 kB / 434.2 MB, free: 7.762 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.001539/0.3452, allocations: 0.8394 MB / 435 MB, free: 7.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.3452, allocations: 9.828 kB / 435 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002403/0.3455, allocations: 67.41 kB / 435.1 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004677/0.3459, allocations: 349.2 kB / 435.4 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.806e-05/0.346, allocations: 32.5 kB / 435.5 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.3461, allocations: 49.22 kB / 435.5 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009754/0.347, allocations: 469.4 kB / 436 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.735e-05/0.3471, allocations: 7.094 kB / 436 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.681e-05/0.3471, allocations: 18.88 kB / 436 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.316e-05/0.3471, allocations: 9.062 kB / 436 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/0.3482, allocations: 464.3 kB / 436.5 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00232/0.3505, allocations: 1.14 MB / 437.6 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009436/0.3515, allocations: 400.8 kB / 438 MB, free: 6.285 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005522/0.352, allocations: 247.1 kB / 438.2 MB, free: 6.188 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.3e-05/0.3521, allocations: 10.12 kB / 438.2 MB, free: 6.188 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.913e-05/0.3521, allocations: 45.92 kB / 438.3 MB, free: 6.137 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 1.804e-06/0.3521, allocations: 0 / 438.3 MB, free: 6.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.005457/0.3575, allocations: 2.328 MB / 440.6 MB, free: 4.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.833e-05/0.3576, allocations: 63.22 kB / 440.7 MB, free: 4.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000328/0.3579, allocations: 305 kB / 441 MB, free: 4.594 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.121e-05/0.358, allocations: 44.02 kB / 441 MB, free: 4.551 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.3581, allocations: 184 kB / 441.2 MB, free: 4.395 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001533/0.3582, allocations: 220.4 kB / 441.4 MB, free: 4.227 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002205/0.3584, allocations: 109 kB / 441.5 MB, free: 4.164 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.005e-05/0.3585, allocations: 358.2 kB / 441.9 MB, free: 3.828 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005334/0.3591, allocations: 225.8 kB / 442.1 MB, free: 3.746 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005313/0.3596, allocations: 277.4 kB / 442.4 MB, free: 3.629 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007972/0.3604, allocations: 393 kB / 442.7 MB, free: 3.457 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3604, allocations: 5.875 kB / 442.7 MB, free: 3.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001676/0.3621, allocations: 0.7424 MB / 443.5 MB, free: 3.133 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.3621, allocations: 5.5 kB / 443.5 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.3621, allocations: 1.094 kB / 443.5 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009057/0.363, allocations: 375.3 kB / 443.9 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003513/0.3634, allocations: 88.25 kB / 443.9 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001164/0.3645, allocations: 1.402 MB / 445.3 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005614/0.3651, allocations: 75.8 kB / 445.4 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.773e-05/0.3651, allocations: 19.33 kB / 445.4 MB, free: 1.762 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.0001927/0.3653, allocations: 167.6 kB / 445.6 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001028/0.3654, allocations: 50.86 kB / 445.7 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001455/0.3656, allocations: 65.5 kB / 445.7 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.3656, allocations: 5.812 kB / 445.7 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.297e-06/0.3656, allocations: 4 kB / 445.7 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.687e-06/0.3656, allocations: 4.547 kB / 445.7 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002824/0.3684, allocations: 1.44 MB / 447.2 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.3684, allocations: 5.719 kB / 447.2 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003871/0.3688, allocations: 80.59 kB / 447.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007626/0.3696, allocations: 353.8 kB / 447.6 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.182e-05/0.3696, allocations: 20.72 kB / 447.6 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001322/0.3709, allocations: 1.367 MB / 449 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/0.371, allocations: 6.094 kB / 449 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002319/0.3733, allocations: 1.041 MB / 450 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002732/0.3735, allocations: 173.5 kB / 450.2 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.3736, allocations: 21.03 kB / 450.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005207/0.3742, allocations: 65.67 kB / 450.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002583/0.3744, allocations: 93.66 kB / 450.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.833e-05/0.3745, allocations: 27.41 kB / 450.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000314/0.3748, allocations: 217.7 kB / 450.6 MB, free: 14.59 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3748, allocations: 1.188 kB / 450.6 MB, free: 14.59 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005571/0.3754, allocations: 130.4 kB / 450.7 MB, free: 14.57 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.001409/0.3768, allocations: 391.2 kB / 451.1 MB, free: 14.42 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001399/0.3782, allocations: 0.5462 MB / 451.7 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3782, allocations: 0 / 451.7 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007996/0.379, allocations: 329.7 kB / 452 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006819/0.3796, allocations: 102.2 kB / 452.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004177/0.3838, allocations: 1.48 MB / 453.6 MB, free: 13.3 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005403/0.3844, allocations: 0.8354 MB / 454.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001818/0.3845, allocations: 48.75 kB / 454.5 MB, free: 12.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/0.3847, allocations: 41.09 kB / 454.5 MB, free: 12.56 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3847, allocations: 0 / 454.5 MB, free: 12.56 MB / 366.1 MB Notification: Performance of Templates: time 0.0182/0.4029, allocations: 10.13 MB / 464.6 MB, free: 8.09 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/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_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: 5.121668975800276]