Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001153/0.001153, allocations: 85.95 kB / 23 MB, free: 1.504 MB / 18.57 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.001296/0.001296, allocations: 171.6 kB / 26.39 MB, free: 7.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9841/0.9841, allocations: 158.6 MB / 188.3 MB, free: 2.82 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.933e-06/1.933e-06, allocations: 0 / 252.2 MB, free: 7.273 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.192e-05/1.386e-05, allocations: 2.312 kB / 252.2 MB, free: 7.27 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002757/0.002771, allocations: 2.934 MB / 255.2 MB, free: 4.309 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001477/0.004248, allocations: 1.181 MB / 256.4 MB, free: 3.125 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001412/0.00439, allocations: 7.938 kB / 256.4 MB, free: 3.117 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003741/0.004764, allocations: 91.22 kB / 256.5 MB, free: 3.027 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000143/0.004907, allocations: 118.9 kB / 256.6 MB, free: 2.91 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005191/0.005426, allocations: 419 kB / 257 MB, free: 2.5 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004934/0.005919, allocations: 0.815 MB / 257.8 MB, free: 1.68 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001335/0.006053, allocations: 61.73 kB / 257.9 MB, free: 1.613 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000398/0.006451, allocations: 499.2 kB / 258.3 MB, free: 1.125 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000959/0.007409, allocations: 1.299 MB / 259.6 MB, free: 15.82 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.593e-05/0.007485, allocations: 68 kB / 259.7 MB, free: 15.76 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001376/0.007623, allocations: 119.9 kB / 259.8 MB, free: 15.64 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001415/0.007764, allocations: 231.8 kB / 260.1 MB, free: 15.41 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001555/0.00792, allocations: 231.4 kB / 260.3 MB, free: 15.19 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005371/0.008457, allocations: 0.7086 MB / 261 MB, free: 14.48 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.393e-06/0.008458, allocations: 4 kB / 261 MB, free: 14.47 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.008459, allocations: 4 kB / 261 MB, free: 14.47 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.723e-06/0.008466, allocations: 0 / 261 MB, free: 14.47 MB / 250.7 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.001691/0.01016, allocations: 1.401 MB / 262.4 MB, free: 13.01 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.0102, allocations: 15.98 kB / 262.4 MB, free: 12.99 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001335/0.01034, allocations: 104.5 kB / 262.5 MB, free: 12.89 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003366/0.01067, allocations: 376.2 kB / 262.9 MB, free: 12.5 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000181/0.01085, allocations: 25.38 kB / 262.9 MB, free: 12.47 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.355e-05/0.01093, allocations: 52.31 kB / 263 MB, free: 12.42 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007293/0.01166, allocations: 0.711 MB / 263.7 MB, free: 11.7 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/0.01167, allocations: 192 / 263.7 MB, free: 11.7 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.183e-05/0.01171, allocations: 16.12 kB / 263.7 MB, free: 11.68 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.01172, allocations: 11.94 kB / 263.7 MB, free: 11.67 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006593/0.01238, allocations: 0.7793 MB / 264.5 MB, free: 10.89 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00212/0.0145, allocations: 2.05 MB / 266.5 MB, free: 8.781 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005213/0.01502, allocations: 473.4 kB / 267 MB, free: 8.297 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002519/0.01527, allocations: 323.2 kB / 267.3 MB, free: 7.973 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.08e-05/0.01532, allocations: 8 kB / 267.3 MB, free: 7.965 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004133/0.01573, allocations: 0.4988 MB / 267.8 MB, free: 7.445 MB / 250.7 MB Notification: Performance of pre-optimization done (n=47): time 1.714e-06/0.01573, allocations: 4 kB / 267.8 MB, free: 7.441 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.003689/0.01942, allocations: 2.749 MB / 270.6 MB, free: 4.617 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.189e-05/0.01946, allocations: 81.11 kB / 270.6 MB, free: 4.52 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004662/0.01993, allocations: 0.7647 MB / 271.4 MB, free: 3.738 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.863e-05/0.01999, allocations: 57.62 kB / 271.5 MB, free: 3.676 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001806/0.02017, allocations: 379.3 kB / 271.8 MB, free: 3.301 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.02027, allocations: 166.7 kB / 272 MB, free: 3.137 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001379/0.02041, allocations: 127.8 kB / 272.1 MB, free: 3.004 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.02057, allocations: 0.578 MB / 272.7 MB, free: 2.414 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000354/0.02093, allocations: 385.1 kB / 273.1 MB, free: 2.035 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003358/0.02126, allocations: 499.1 kB / 273.6 MB, free: 1.508 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005134/0.02178, allocations: 0.6958 MB / 274.3 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.02178, allocations: 0 / 274.3 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001481/0.02326, allocations: 1.292 MB / 275.5 MB, free: 15.46 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.02328, allocations: 11.44 kB / 275.6 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.02328, allocations: 4 kB / 275.6 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001027/0.02431, allocations: 1.444 MB / 277 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002135/0.02452, allocations: 99.88 kB / 277.1 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004183/0.02871, allocations: 6.47 MB / 283.6 MB, free: 7.156 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004044/0.02911, allocations: 151.7 kB / 283.7 MB, free: 7.008 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.313e-05/0.02914, allocations: 16 kB / 283.7 MB, free: 6.992 MB / 266.7 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 (stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1,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,supportFriction.free) * 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,5), (1,6), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001725/0.02932, allocations: 211.1 kB / 283.9 MB, free: 6.777 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.02942, allocations: 83.58 kB / 284 MB, free: 6.695 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.454e-05/0.0295, allocations: 90.17 kB / 284.1 MB, free: 6.605 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.02951, allocations: 4 kB / 284.1 MB, free: 6.602 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.02951, allocations: 0 / 284.1 MB, free: 6.602 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/0.02952, allocations: 7.922 kB / 284.1 MB, free: 6.594 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001656/0.03117, allocations: 1.922 MB / 286 MB, free: 4.617 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.03118, allocations: 4 kB / 286.1 MB, free: 4.613 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001989/0.03138, allocations: 79.95 kB / 286.1 MB, free: 4.535 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009686/0.03235, allocations: 1.428 MB / 287.6 MB, free: 3.094 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.632e-05/0.03238, allocations: 23.97 kB / 287.6 MB, free: 3.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003642/0.03602, allocations: 6.016 MB / 293.6 MB, free: 12.8 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.03603, allocations: 0 / 293.6 MB, free: 12.8 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001559/0.03758, allocations: 1.811 MB / 295.4 MB, free: 10.94 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001776/0.03776, allocations: 135.3 kB / 295.5 MB, free: 10.81 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.977e-05/0.03783, allocations: 23.98 kB / 295.6 MB, free: 10.79 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004845/0.03832, allocations: 171.8 kB / 295.7 MB, free: 10.62 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000716/0.03903, allocations: 0.5107 MB / 296.2 MB, free: 10.11 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.186e-05/0.03907, allocations: 27.97 kB / 296.3 MB, free: 10.08 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002627/0.03934, allocations: 458.9 kB / 296.7 MB, free: 9.633 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03934, allocations: 0 / 296.7 MB, free: 9.633 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005019/0.03984, allocations: 187.9 kB / 296.9 MB, free: 9.449 MB / 282.7 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.0005018/0.04034, allocations: 151.2 kB / 297 MB, free: 9.289 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009238/0.04126, allocations: 1.154 MB / 298.2 MB, free: 8.094 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.227e-06/0.04127, allocations: 0 / 298.2 MB, free: 8.094 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005144/0.04178, allocations: 0.7575 MB / 299 MB, free: 7.297 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003761/0.04216, allocations: 107.2 kB / 299.1 MB, free: 7.191 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002049/0.04421, allocations: 1.549 MB / 300.6 MB, free: 5.594 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001008/0.04431, allocations: 165.9 kB / 300.8 MB, free: 5.414 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001165/0.04442, allocations: 43.27 kB / 300.8 MB, free: 5.371 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000179/0.0446, allocations: 146.2 kB / 301 MB, free: 5.227 MB / 282.7 MB Notification: Performance of SimCode: time 7.51e-07/0.0446, allocations: 0 / 301 MB, free: 5.227 MB / 282.7 MB Notification: Performance of Templates: time 0.02187/0.06648, allocations: 21.04 MB / 322 MB, free: 120 kB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4088849518448114]