Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.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.001827/0.001827, allocations: 83.92 kB / 20.68 MB, free: 1.023 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.002261/0.002261, allocations: 163.2 kB / 23.95 MB, free: 4.156 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: 177.1 MB / 204.3 MB, free: 9.18 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.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.054e-06/2.054e-06, allocations: 0 / 325 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.024e-05/3.229e-05, allocations: 2.281 kB / 325 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.006564/0.006596, allocations: 2.92 MB / 328 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003739/0.01034, allocations: 1.302 MB / 329.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000315/0.01065, allocations: 9.188 kB / 329.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006426/0.01129, allocations: 100.7 kB / 329.4 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004542/0.01175, allocations: 132.1 kB / 329.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001746/0.01349, allocations: 430.7 kB / 329.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00148/0.01497, allocations: 0.8382 MB / 330.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002623/0.01523, allocations: 67.52 kB / 330.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001123/0.01636, allocations: 0.4964 MB / 331.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003036/0.01939, allocations: 1.411 MB / 332.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002081/0.0196, allocations: 68.12 kB / 332.8 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004733/0.02008, allocations: 134.1 kB / 332.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004061/0.02048, allocations: 243.1 kB / 333.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004669/0.02095, allocations: 244.9 kB / 333.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001805/0.02275, allocations: 0.9895 MB / 334.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.78e-06/0.02276, allocations: 1.031 kB / 334.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.02276, allocations: 0 / 334.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.02277, allocations: 0 / 334.4 MB, free: 10.84 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.006865/0.02964, allocations: 1.431 MB / 335.8 MB, free: 9.812 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/0.02969, allocations: 10.16 kB / 335.8 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008675/0.03055, allocations: 102 kB / 335.9 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001003/0.03156, allocations: 380.2 kB / 336.3 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.179e-05/0.03163, allocations: 29.97 kB / 336.3 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001678/0.0318, allocations: 39.81 kB / 336.4 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002708/0.0345, allocations: 0.6359 MB / 337 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.361e-05/0.03455, allocations: 13.19 kB / 337 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001274/0.03467, allocations: 24.61 kB / 337 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.666e-05/0.03469, allocations: 8.188 kB / 337.1 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003225/0.03792, allocations: 0.6842 MB / 337.7 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003904/0.04182, allocations: 1.422 MB / 339.2 MB, free: 6.891 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00148/0.0433, allocations: 488 kB / 339.6 MB, free: 6.398 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008624/0.04416, allocations: 289.6 kB / 339.9 MB, free: 6.109 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.991e-05/0.04422, allocations: 7.938 kB / 339.9 MB, free: 6.102 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001228/0.04545, allocations: 491.2 kB / 340.4 MB, free: 5.605 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 1.913e-06/0.04545, allocations: 0 / 340.4 MB, free: 5.605 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.009548/0.055, allocations: 2.437 MB / 342.8 MB, free: 3.105 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.062e-05/0.05508, allocations: 85.11 kB / 342.9 MB, free: 3.004 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001293/0.05637, allocations: 0.9141 MB / 343.8 MB, free: 2.078 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001034/0.05648, allocations: 53.62 kB / 343.9 MB, free: 2.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002801/0.05676, allocations: 296.7 kB / 344.2 MB, free: 1.727 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000187/0.05694, allocations: 182.6 kB / 344.4 MB, free: 1.547 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000327/0.05727, allocations: 118.3 kB / 344.5 MB, free: 1.426 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000214/0.05748, allocations: 382.8 kB / 344.9 MB, free: 1.043 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009483/0.05843, allocations: 321.1 kB / 345.2 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001019/0.05945, allocations: 415 kB / 345.6 MB, free: 300 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001594/0.06105, allocations: 0.507 MB / 346.1 MB, free: 15.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.06105, allocations: 0 / 346.1 MB, free: 15.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00301/0.06406, allocations: 0.995 MB / 347.1 MB, free: 14.74 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.06408, allocations: 4 kB / 347.1 MB, free: 14.74 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.06409, allocations: 4 kB / 347.1 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001172/0.06527, allocations: 0.5568 MB / 347.6 MB, free: 14.17 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005478/0.06581, allocations: 107.9 kB / 347.7 MB, free: 14.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006797/0.07261, allocations: 4.452 MB / 352.2 MB, free: 9.383 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001665/0.07428, allocations: 231.7 kB / 352.4 MB, free: 9.156 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.556e-05/0.07435, allocations: 27.98 kB / 352.4 MB, free: 9.129 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,stop1.stopped,stop1.mode,$PRE.stop1.mode,stop1.locked,stop1.startBackward,$PRE.stop1.startBackward,stop1.startForward,$PRE.stop1.startForward,stop1.free,$whenCondition2,stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,7), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0005426/0.07489, allocations: 259.5 kB / 352.7 MB, free: 8.867 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001714/0.07506, allocations: 75.53 kB / 352.8 MB, free: 8.793 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002202/0.07528, allocations: 102.2 kB / 352.9 MB, free: 8.691 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.07529, allocations: 8 kB / 352.9 MB, free: 8.684 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.0753, allocations: 0 / 352.9 MB, free: 8.684 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.07531, allocations: 3.938 kB / 352.9 MB, free: 8.68 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003138/0.07844, allocations: 1.208 MB / 354.1 MB, free: 7.418 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.07845, allocations: 4.062 kB / 354.1 MB, free: 7.414 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005096/0.07896, allocations: 87.88 kB / 354.2 MB, free: 7.328 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001016/0.07998, allocations: 0.5216 MB / 354.7 MB, free: 6.797 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.24e-05/0.08005, allocations: 27.95 kB / 354.7 MB, free: 6.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005837/0.08589, allocations: 4.079 MB / 358.8 MB, free: 2.461 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.08589, allocations: 3.984 kB / 358.8 MB, free: 2.457 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003734/0.08962, allocations: 1.255 MB / 360.1 MB, free: 1.168 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003784/0.09, allocations: 135.5 kB / 360.2 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001259/0.09013, allocations: 23.94 kB / 360.2 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001816/0.09194, allocations: 271.6 kB / 360.5 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001543/0.09349, allocations: 0.5693 MB / 361.1 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.936e-05/0.09357, allocations: 36.27 kB / 361.1 MB, free: 144 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008104/0.09438, allocations: 0.667 MB / 361.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.09438, allocations: 0 / 361.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008182/0.09519, allocations: 183.9 kB / 361.9 MB, free: 15.3 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,5), (1,5), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001545/0.09674, allocations: 423.8 kB / 362.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00249/0.09923, allocations: 0.9181 MB / 363.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.09923, allocations: 448 / 363.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001604/0.1008, allocations: 0.6541 MB / 363.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006948/0.1015, allocations: 71.59 kB / 364 MB, free: 13.34 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00463/0.1062, allocations: 1.761 MB / 365.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003628/0.1065, allocations: 326.9 kB / 366.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000234/0.1068, allocations: 47.27 kB / 366.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00015/0.1069, allocations: 48.42 kB / 366.2 MB, free: 11.11 MB / 334.1 MB Notification: Performance of SimCode: time 9.02e-07/0.1069, allocations: 0 / 366.2 MB, free: 11.11 MB / 334.1 MB Notification: Performance of Templates: time 0.02726/0.1342, allocations: 14.17 MB / 380.3 MB, free: 12.98 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Translational.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.053867235779762]