Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 88.48 kB / 20.78 MB, free: 0.5742 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 150.1 kB / 24.05 MB, free: 3.574 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 173.3 MB / 200.6 MB, free: 12.84 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 319.1 MB, free: 3.559 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.377e-05/2.56e-05, allocations: 3.531 kB / 319.1 MB, free: 3.555 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003169/0.003194, allocations: 2.786 MB / 321.9 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001611/0.004805, allocations: 1.123 MB / 323 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001342/0.004939, allocations: 8.125 kB / 323 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000349/0.005288, allocations: 86.48 kB / 323.1 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001774/0.005466, allocations: 117 kB / 323.2 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000716/0.006182, allocations: 418.6 kB / 323.6 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006358/0.006817, allocations: 0.8261 MB / 324.5 MB, free: 172 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000158/0.006975, allocations: 66.59 kB / 324.5 MB, free: 132 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005993/0.007575, allocations: 487.7 kB / 325 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001694/0.009268, allocations: 1.284 MB / 326.3 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001412/0.00941, allocations: 68.66 kB / 326.3 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002558/0.009665, allocations: 117.9 kB / 326.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000274/0.009939, allocations: 232.8 kB / 326.7 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003286/0.01027, allocations: 243.6 kB / 326.9 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001247/0.01151, allocations: 0.9469 MB / 327.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.01152, allocations: 3.938 kB / 327.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.01152, allocations: 1.75 kB / 327.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.01153, allocations: 0 / 327.9 MB, free: 15.11 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.004122/0.01566, allocations: 1.414 MB / 329.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.0157, allocations: 9.219 kB / 329.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002004/0.0159, allocations: 82.64 kB / 329.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006464/0.01654, allocations: 372.1 kB / 329.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.92e-05/0.01659, allocations: 29 kB / 329.8 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001119/0.0167, allocations: 36.66 kB / 329.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002056/0.01876, allocations: 1.156 MB / 331 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.177e-05/0.01878, allocations: 5.594 kB / 331 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.279e-05/0.01887, allocations: 23.86 kB / 331 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.01888, allocations: 8.281 kB / 331 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002879/0.02175, allocations: 1.731 MB / 332.7 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004501/0.02626, allocations: 2.256 MB / 335 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00174/0.028, allocations: 0.8991 MB / 335.9 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001212/0.02921, allocations: 0.7006 MB / 336.6 MB, free: 9.984 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.853e-05/0.02928, allocations: 8 kB / 336.6 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001554/0.03083, allocations: 0.9013 MB / 337.5 MB, free: 9.059 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 1.994e-06/0.03083, allocations: 0 / 337.5 MB, free: 9.059 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.01188/0.04271, allocations: 5.422 MB / 342.9 MB, free: 3.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.808e-05/0.04278, allocations: 81.11 kB / 343 MB, free: 3.473 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001275/0.04405, allocations: 0.914 MB / 343.9 MB, free: 2.547 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.51e-05/0.04415, allocations: 49.69 kB / 344 MB, free: 2.492 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000259/0.04441, allocations: 296.7 kB / 344.3 MB, free: 2.195 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001775/0.04459, allocations: 174.7 kB / 344.4 MB, free: 2.023 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002317/0.04482, allocations: 114.3 kB / 344.5 MB, free: 1.906 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002109/0.04503, allocations: 378.8 kB / 344.9 MB, free: 1.527 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001388/0.04642, allocations: 0.8486 MB / 345.8 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001476/0.04789, allocations: 0.9401 MB / 346.7 MB, free: 15.71 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002348/0.05024, allocations: 1.471 MB / 348.2 MB, free: 14.21 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.05024, allocations: 0 / 348.2 MB, free: 14.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004046/0.05429, allocations: 2.471 MB / 350.6 MB, free: 11.72 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.05431, allocations: 8.031 kB / 350.6 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.05432, allocations: 7.938 kB / 350.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002273/0.0566, allocations: 1.904 MB / 352.6 MB, free: 9.789 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005424/0.05714, allocations: 107.9 kB / 352.7 MB, free: 9.684 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008124/0.06526, allocations: 6.428 MB / 359.1 MB, free: 3.027 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001486/0.06675, allocations: 231.8 kB / 359.3 MB, free: 2.801 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.433e-05/0.06681, allocations: 23.98 kB / 359.3 MB, free: 2.777 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,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004319/0.06724, allocations: 264.4 kB / 359.6 MB, free: 2.512 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001336/0.06738, allocations: 67.58 kB / 359.7 MB, free: 2.445 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001824/0.06756, allocations: 102.1 kB / 359.8 MB, free: 2.344 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.06757, allocations: 8 kB / 359.8 MB, free: 2.336 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.06757, allocations: 0 / 359.8 MB, free: 2.336 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.06758, allocations: 3.984 kB / 359.8 MB, free: 2.332 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004314/0.07189, allocations: 2.903 MB / 362.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.084e-05/0.07191, allocations: 3.938 kB / 362.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005033/0.07241, allocations: 87.94 kB / 362.8 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002124/0.07453, allocations: 1.873 MB / 364.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.82e-05/0.0746, allocations: 20.09 kB / 364.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007505/0.08211, allocations: 6.048 MB / 370.7 MB, free: 7.105 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.08211, allocations: 0 / 370.7 MB, free: 7.105 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005437/0.08754, allocations: 3.227 MB / 373.9 MB, free: 3.84 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003726/0.08792, allocations: 131.5 kB / 374.1 MB, free: 3.711 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001251/0.08804, allocations: 20 kB / 374.1 MB, free: 3.691 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001763/0.08981, allocations: 271.6 kB / 374.3 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001393/0.0912, allocations: 0.5849 MB / 374.9 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.792e-05/0.09127, allocations: 23.97 kB / 375 MB, free: 2.816 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008189/0.09209, allocations: 0.6748 MB / 375.6 MB, free: 2.145 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.09209, allocations: 0 / 375.6 MB, free: 2.145 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008133/0.0929, allocations: 191.9 kB / 375.8 MB, free: 1.957 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003039/0.0932, allocations: 157.7 kB / 376 MB, free: 1.797 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003165/0.09637, allocations: 1.87 MB / 377.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.09637, allocations: 4 kB / 377.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001869/0.09824, allocations: 1.083 MB / 378.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006068/0.09885, allocations: 69.91 kB / 379 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00431/0.1032, allocations: 1.827 MB / 380.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000366/0.1035, allocations: 322.7 kB / 381.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000229/0.1038, allocations: 43.27 kB / 381.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.1039, allocations: 40.48 kB / 381.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of SimCode: time 8.92e-07/0.1039, allocations: 0 / 381.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of Templates: time 0.03146/0.1353, allocations: 19.61 MB / 400.8 MB, free: 8.82 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.1097541227936745]