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.00129/0.00129, allocations: 82.7 kB / 20.68 MB, free: 1.039 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.001426/0.001426, allocations: 165.2 kB / 23.95 MB, free: 4.172 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.427/1.427, allocations: 177.1 MB / 204.3 MB, free: 9.195 MB / 190.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 1.263e-06/1.263e-06, allocations: 0 / 325.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.859e-05/1.985e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004462/0.004482, allocations: 2.984 MB / 328 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001994/0.006476, allocations: 1.087 MB / 329.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001606/0.006636, allocations: 9.406 kB / 329.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003133/0.006949, allocations: 91.69 kB / 329.2 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004395/0.007389, allocations: 196.8 kB / 329.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004547/0.007844, allocations: 208.7 kB / 329.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007471/0.008591, allocations: 0.6886 MB / 330.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002037/0.008795, allocations: 85.56 kB / 330.4 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006295/0.009424, allocations: 418.9 kB / 330.8 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004038/0.009828, allocations: 258 kB / 331.1 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.161e-05/0.009919, allocations: 51.19 kB / 331.1 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002176/0.01014, allocations: 105.6 kB / 331.2 MB, free: 12.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000191/0.01033, allocations: 142.8 kB / 331.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002503/0.01058, allocations: 188.6 kB / 331.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008648/0.01144, allocations: 0.6934 MB / 332.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.696e-06/0.01145, allocations: 0 / 332.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.91e-07/0.01145, allocations: 1.5 kB / 332.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.273e-06/0.01145, allocations: 4 kB / 332.2 MB, free: 12.02 MB / 302.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.001651/0.0131, allocations: 0.7516 MB / 333 MB, free: 11.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.232e-05/0.01314, allocations: 17.81 kB / 333 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00024/0.01338, allocations: 68.61 kB / 333.1 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005289/0.01391, allocations: 284.4 kB / 333.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.17e-05/0.01395, allocations: 35.44 kB / 333.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.27e-05/0.01404, allocations: 43.11 kB / 333.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001003/0.01504, allocations: 470.6 kB / 333.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.435e-05/0.01507, allocations: 5.875 kB / 333.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.499e-05/0.01512, allocations: 19.38 kB / 333.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.01514, allocations: 14.34 kB / 333.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00107/0.01621, allocations: 458.5 kB / 334.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002118/0.01832, allocations: 0.9294 MB / 335.3 MB, free: 9.859 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001008/0.01933, allocations: 405.3 kB / 335.7 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005688/0.0199, allocations: 249.2 kB / 335.9 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.272e-05/0.01994, allocations: 6.188 kB / 335.9 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.453e-05/0.01998, allocations: 41.53 kB / 336 MB, free: 9.469 MB / 302.1 MB Notification: Performance of pre-optimization done (n=55): time 1.853e-06/0.01998, allocations: 4 kB / 336 MB, free: 9.465 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.005632/0.02561, allocations: 2.011 MB / 338 MB, free: 8.059 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.36e-05/0.02567, allocations: 59.91 kB / 338.1 MB, free: 7.988 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003459/0.02601, allocations: 288.2 kB / 338.3 MB, free: 7.695 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.99e-05/0.02608, allocations: 41.7 kB / 338.4 MB, free: 7.648 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001544/0.02624, allocations: 189.6 kB / 338.6 MB, free: 7.461 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002062/0.02644, allocations: 226.2 kB / 338.8 MB, free: 7.238 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002107/0.02665, allocations: 106.3 kB / 338.9 MB, free: 7.129 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001858/0.02684, allocations: 354.7 kB / 339.2 MB, free: 6.773 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005566/0.0274, allocations: 229.2 kB / 339.5 MB, free: 6.547 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005557/0.02795, allocations: 272.8 kB / 339.7 MB, free: 6.281 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008616/0.02881, allocations: 394.1 kB / 340.1 MB, free: 5.891 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.02881, allocations: 4 kB / 340.1 MB, free: 5.887 MB / 302.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001743/0.03056, allocations: 0.7406 MB / 340.9 MB, free: 5.133 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.03057, allocations: 12.03 kB / 340.9 MB, free: 5.121 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.03058, allocations: 0 / 340.9 MB, free: 5.121 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009179/0.0315, allocations: 373.4 kB / 341.2 MB, free: 4.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003536/0.03185, allocations: 91.83 kB / 341.3 MB, free: 4.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00156/0.03341, allocations: 1.398 MB / 342.7 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005265/0.03394, allocations: 76.03 kB / 342.8 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.902e-05/0.03399, allocations: 19.98 kB / 342.8 MB, free: 3.117 MB / 302.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.0002395/0.03423, allocations: 173.5 kB / 343 MB, free: 2.938 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/0.03436, allocations: 47.72 kB / 343 MB, free: 2.891 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001536/0.03451, allocations: 63.69 kB / 343.1 MB, free: 2.824 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.254e-06/0.03452, allocations: 7.938 kB / 343.1 MB, free: 2.816 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.03453, allocations: 0 / 343.1 MB, free: 2.816 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.03454, allocations: 7.984 kB / 343.1 MB, free: 2.809 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002979/0.03752, allocations: 1.263 MB / 344.4 MB, free: 1.488 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.03752, allocations: 3.938 kB / 344.4 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003888/0.03791, allocations: 79.89 kB / 344.4 MB, free: 1.406 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008521/0.03876, allocations: 353.6 kB / 344.8 MB, free: 1.055 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.659e-05/0.03882, allocations: 23.98 kB / 344.8 MB, free: 1.031 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001629/0.04045, allocations: 1.354 MB / 346.2 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/0.04046, allocations: 4.031 kB / 346.2 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002187/0.04264, allocations: 1.041 MB / 347.2 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002465/0.04289, allocations: 99.67 kB / 347.3 MB, free: 14.44 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.04299, allocations: 20 kB / 347.3 MB, free: 14.42 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004779/0.04347, allocations: 55.94 kB / 347.4 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002343/0.04371, allocations: 100.3 kB / 347.5 MB, free: 14.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.275e-05/0.04376, allocations: 31.92 kB / 347.5 MB, free: 14.23 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002889/0.04405, allocations: 207.1 kB / 347.7 MB, free: 14.04 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.04405, allocations: 4 kB / 347.7 MB, free: 14.03 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005181/0.04457, allocations: 131.9 kB / 347.8 MB, free: 13.9 MB / 318.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.001491/0.04606, allocations: 412.6 kB / 348.3 MB, free: 13.65 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001448/0.0475, allocations: 0.5342 MB / 348.8 MB, free: 13.12 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.04751, allocations: 0 / 348.8 MB, free: 13.12 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007926/0.0483, allocations: 327 kB / 349.1 MB, free: 12.8 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006512/0.04895, allocations: 85.73 kB / 349.2 MB, free: 12.71 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003952/0.0529, allocations: 1.342 MB / 350.5 MB, free: 11.34 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002482/0.05315, allocations: 237.2 kB / 350.8 MB, free: 11.08 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001555/0.05331, allocations: 43.28 kB / 350.8 MB, free: 11.04 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001263/0.05343, allocations: 40.48 kB / 350.8 MB, free: 11 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.05343, allocations: 0 / 350.8 MB, free: 11 MB / 318.1 MB Notification: Performance of Templates: time 0.01654/0.06998, allocations: 8.631 MB / 359.5 MB, free: 2.445 MB / 318.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: 4.6786100678145885]