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.001552/0.001552, allocations: 107 kB / 21.18 MB, free: 0.6484 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.001752/0.001752, allocations: 211.4 kB / 24.48 MB, free: 3.941 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.454/1.454, allocations: 230.6 MB / 258.2 MB, free: 7.785 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.001579/0.001579, allocations: 55.92 kB / 379 MB, free: 2.555 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.2176, allocations: 53.36 MB / 432.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004494/0.2221, allocations: 2.962 MB / 435.3 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001938/0.224, allocations: 1.079 MB / 436.4 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001585/0.2242, allocations: 11.94 kB / 436.4 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002931/0.2245, allocations: 87.22 kB / 436.5 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003976/0.2249, allocations: 190.6 kB / 436.7 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003992/0.2253, allocations: 211.6 kB / 436.9 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006586/0.226, allocations: 0.6629 MB / 437.5 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001996/0.2262, allocations: 93.31 kB / 437.6 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004034/0.2266, allocations: 315 kB / 437.9 MB, free: 1.105 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004106/0.227, allocations: 318.9 kB / 438.2 MB, free: 0.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.017e-05/0.2271, allocations: 52 kB / 438.3 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002056/0.2273, allocations: 112 kB / 438.4 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001668/0.2274, allocations: 143.5 kB / 438.5 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002308/0.2277, allocations: 223 kB / 438.8 MB, free: 280 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007344/0.2284, allocations: 0.6592 MB / 439.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.2284, allocations: 0 / 439.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2284, allocations: 0 / 439.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.545e-06/0.2284, allocations: 0 / 439.4 MB, free: 15.62 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.001556/0.23, allocations: 0.7698 MB / 440.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.23, allocations: 8.031 kB / 440.2 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002412/0.2302, allocations: 72.5 kB / 440.3 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005227/0.2308, allocations: 290.2 kB / 440.5 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.062e-05/0.2308, allocations: 37.38 kB / 440.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.2309, allocations: 44.33 kB / 440.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009667/0.2319, allocations: 470.6 kB / 441.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.475e-05/0.2319, allocations: 7.984 kB / 441.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.49e-05/0.232, allocations: 16 kB / 441.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.232, allocations: 8 kB / 441.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00104/0.233, allocations: 467.6 kB / 441.6 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002116/0.2351, allocations: 0.9354 MB / 442.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009568/0.2361, allocations: 404 kB / 442.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005482/0.2366, allocations: 246.2 kB / 443.1 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.271e-05/0.2367, allocations: 8.5 kB / 443.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.248e-05/0.2367, allocations: 39 kB / 443.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 1.974e-06/0.2367, allocations: 4 kB / 443.2 MB, free: 11.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.005423/0.2421, allocations: 2.002 MB / 445.2 MB, free: 9.668 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.357e-05/0.2422, allocations: 67.84 kB / 445.3 MB, free: 9.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003502/0.2425, allocations: 284.2 kB / 445.5 MB, free: 9.301 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.103e-05/0.2426, allocations: 41.7 kB / 445.6 MB, free: 9.254 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.2428, allocations: 189.6 kB / 445.8 MB, free: 9.062 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002077/0.243, allocations: 222.1 kB / 446 MB, free: 8.844 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002133/0.2432, allocations: 106.3 kB / 446.1 MB, free: 8.734 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.2434, allocations: 350.8 kB / 446.4 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005127/0.2439, allocations: 229.2 kB / 446.7 MB, free: 8.156 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005622/0.2444, allocations: 284.8 kB / 446.9 MB, free: 7.875 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008309/0.2453, allocations: 386.1 kB / 447.3 MB, free: 7.492 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2453, allocations: 0 / 447.3 MB, free: 7.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001785/0.247, allocations: 0.7484 MB / 448.1 MB, free: 6.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.2471, allocations: 4 kB / 448.1 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.2471, allocations: 0 / 448.1 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009217/0.248, allocations: 377.4 kB / 448.4 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000352/0.2483, allocations: 91.83 kB / 448.5 MB, free: 6.262 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001535/0.2499, allocations: 1.394 MB / 449.9 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004976/0.2504, allocations: 75.94 kB / 450 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.138e-05/0.2504, allocations: 24.11 kB / 450 MB, free: 4.719 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.0002566/0.2507, allocations: 170.4 kB / 450.2 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/0.2508, allocations: 51.59 kB / 450.2 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001375/0.2509, allocations: 59.69 kB / 450.3 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.675e-06/0.2509, allocations: 8 kB / 450.3 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.2509, allocations: 0 / 450.3 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.251, allocations: 3.984 kB / 450.3 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002835/0.2538, allocations: 1.263 MB / 451.6 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.714e-06/0.2538, allocations: 4 kB / 451.6 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003909/0.2542, allocations: 92.05 kB / 451.7 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000833/0.255, allocations: 345.4 kB / 452 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.285e-05/0.2551, allocations: 19.97 kB / 452 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001467/0.2565, allocations: 1.366 MB / 453.4 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2565, allocations: 4.062 kB / 453.4 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00212/0.2587, allocations: 1.049 MB / 454.4 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002411/0.2589, allocations: 95.62 kB / 454.5 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001029/0.259, allocations: 20 kB / 454.5 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004806/0.2595, allocations: 63.97 kB / 454.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002202/0.2597, allocations: 104.2 kB / 454.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.242e-05/0.2598, allocations: 23.97 kB / 454.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002293/0.26, allocations: 207 kB / 454.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.26, allocations: 0 / 454.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005045/0.2605, allocations: 124 kB / 455.1 MB, free: 15.51 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.001472/0.262, allocations: 415.8 kB / 455.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001324/0.2633, allocations: 0.542 MB / 456 MB, free: 14.72 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2633, allocations: 0 / 456 MB, free: 14.72 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007799/0.2641, allocations: 330.5 kB / 456.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006344/0.2647, allocations: 89.23 kB / 456.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003938/0.2686, allocations: 1.472 MB / 457.9 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002321/0.2689, allocations: 237.1 kB / 458.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001643/0.269, allocations: 43.3 kB / 458.2 MB, free: 12.49 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001191/0.2692, allocations: 39.42 kB / 458.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2692, allocations: 0 / 458.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of Templates: time 0.01588/0.285, allocations: 9.274 MB / 467.5 MB, free: 3.258 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 -s gbode -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: 4.846086018005735]