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.001214/0.001214, allocations: 84.3 kB / 22.21 MB, free: 2.289 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.001496/0.001496, allocations: 171.8 kB / 25.6 MB, free: 8.918 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 1.034/1.034, allocations: 158.6 MB / 187.5 MB, free: 2.773 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 3.586e-06/3.586e-06, allocations: 4 kB / 251.5 MB, free: 7.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.744e-05/3.103e-05, allocations: 2.312 kB / 251.5 MB, free: 7.246 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.005143/0.005174, allocations: 2.927 MB / 254.4 MB, free: 4.289 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00256/0.007734, allocations: 1.189 MB / 255.6 MB, free: 3.098 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002736/0.008008, allocations: 7.938 kB / 255.6 MB, free: 3.09 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004574/0.008465, allocations: 83.28 kB / 255.7 MB, free: 3.008 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003049/0.00877, allocations: 118.9 kB / 255.8 MB, free: 2.891 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009781/0.009748, allocations: 419.1 kB / 256.2 MB, free: 2.48 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000938/0.01069, allocations: 0.8266 MB / 257 MB, free: 1.652 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001781/0.01086, allocations: 57.77 kB / 257.1 MB, free: 1.59 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008806/0.01175, allocations: 499.1 kB / 257.6 MB, free: 1.102 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001507/0.01325, allocations: 1.299 MB / 258.9 MB, free: 15.8 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001858/0.01344, allocations: 68 kB / 258.9 MB, free: 15.73 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002491/0.01369, allocations: 119.9 kB / 259 MB, free: 15.62 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001929/0.01388, allocations: 227.8 kB / 259.3 MB, free: 15.39 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002421/0.01412, allocations: 235.4 kB / 259.5 MB, free: 15.16 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00103/0.01515, allocations: 0.7125 MB / 260.2 MB, free: 14.45 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.01516, allocations: 4 kB / 260.2 MB, free: 14.45 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.01516, allocations: 0 / 260.2 MB, free: 14.45 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.821e-05/0.01518, allocations: 0 / 260.2 MB, free: 14.45 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.002425/0.0176, allocations: 1.405 MB / 261.6 MB, free: 12.98 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.01765, allocations: 11.98 kB / 261.6 MB, free: 12.97 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002181/0.01786, allocations: 112.5 kB / 261.7 MB, free: 12.86 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005076/0.01837, allocations: 368.3 kB / 262.1 MB, free: 12.47 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.298e-05/0.01841, allocations: 29.38 kB / 262.1 MB, free: 12.45 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.565e-05/0.01851, allocations: 52.3 kB / 262.2 MB, free: 12.39 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001057/0.01957, allocations: 0.7032 MB / 262.9 MB, free: 11.68 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.384e-05/0.01959, allocations: 8.125 kB / 262.9 MB, free: 11.67 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.678e-05/0.01965, allocations: 16.12 kB / 262.9 MB, free: 11.65 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.01966, allocations: 12 kB / 262.9 MB, free: 11.64 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001271/0.02093, allocations: 0.7716 MB / 263.7 MB, free: 10.87 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003196/0.02413, allocations: 2.053 MB / 265.7 MB, free: 8.758 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008209/0.02495, allocations: 473.8 kB / 266.2 MB, free: 8.27 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004077/0.02536, allocations: 319.2 kB / 266.5 MB, free: 7.949 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.532e-05/0.02541, allocations: 8 kB / 266.5 MB, free: 7.941 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006558/0.02607, allocations: 0.5027 MB / 267 MB, free: 7.418 MB / 250.7 MB Notification: Performance of pre-optimization done (n=47): time 2.775e-06/0.02607, allocations: 0 / 267 MB, free: 7.418 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.005396/0.03147, allocations: 2.754 MB / 269.8 MB, free: 4.59 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.623e-05/0.03151, allocations: 81.11 kB / 269.9 MB, free: 4.492 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001082/0.03259, allocations: 0.7764 MB / 270.6 MB, free: 3.699 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 7.016e-05/0.03266, allocations: 41.7 kB / 270.7 MB, free: 3.652 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002785/0.03294, allocations: 379.3 kB / 271 MB, free: 3.277 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001603/0.0331, allocations: 174.6 kB / 271.2 MB, free: 3.105 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002222/0.03333, allocations: 127.8 kB / 271.3 MB, free: 2.973 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002425/0.03357, allocations: 0.5741 MB / 271.9 MB, free: 2.387 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005816/0.03415, allocations: 389.1 kB / 272.3 MB, free: 2.004 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005315/0.03468, allocations: 491.2 kB / 272.8 MB, free: 1.484 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008067/0.03549, allocations: 0.6997 MB / 273.5 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/0.03549, allocations: 7.938 kB / 273.5 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001915/0.03741, allocations: 1.288 MB / 274.8 MB, free: 15.43 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.03743, allocations: 11.28 kB / 274.8 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.03744, allocations: 192 / 274.8 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001614/0.03906, allocations: 1.447 MB / 276.2 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003395/0.0394, allocations: 99.83 kB / 276.3 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005691/0.04509, allocations: 6.474 MB / 282.8 MB, free: 7.125 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006949/0.04578, allocations: 151.7 kB / 282.9 MB, free: 6.977 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.985e-05/0.04584, allocations: 19.98 kB / 283 MB, free: 6.957 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.0002978/0.04614, allocations: 203.1 kB / 283.2 MB, free: 6.75 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001661/0.04631, allocations: 87.58 kB / 283.2 MB, free: 6.664 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001222/0.04643, allocations: 94.16 kB / 283.3 MB, free: 6.57 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.732e-06/0.04644, allocations: 4 kB / 283.3 MB, free: 6.566 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.04644, allocations: 0 / 283.3 MB, free: 6.566 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.04645, allocations: 3.938 kB / 283.3 MB, free: 6.562 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002901/0.04935, allocations: 1.922 MB / 285.3 MB, free: 4.586 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.04935, allocations: 128 / 285.3 MB, free: 4.586 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003146/0.04967, allocations: 87.95 kB / 285.4 MB, free: 4.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001491/0.05116, allocations: 1.424 MB / 286.8 MB, free: 3.062 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.26e-05/0.05122, allocations: 27.91 kB / 286.8 MB, free: 3.035 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005293/0.05652, allocations: 6.016 MB / 292.8 MB, free: 12.76 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.05652, allocations: 0 / 292.8 MB, free: 12.76 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002385/0.0589, allocations: 1.814 MB / 294.6 MB, free: 10.9 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003223/0.05922, allocations: 131.4 kB / 294.8 MB, free: 10.77 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.05933, allocations: 24 kB / 294.8 MB, free: 10.75 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000767/0.0601, allocations: 179.7 kB / 295 MB, free: 10.57 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001153/0.06125, allocations: 0.5068 MB / 295.5 MB, free: 10.06 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/0.06135, allocations: 27.95 kB / 295.5 MB, free: 10.04 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004588/0.06181, allocations: 454.9 kB / 295.9 MB, free: 9.594 MB / 282.7 MB Notification: Performance of sort global known variables: time 1e-07/0.06181, allocations: 0 / 295.9 MB, free: 9.594 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009371/0.06274, allocations: 187.9 kB / 296.1 MB, free: 9.41 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.000262/0.06301, allocations: 155.1 kB / 296.3 MB, free: 9.246 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.007415/0.07042, allocations: 1.154 MB / 297.4 MB, free: 8.051 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.07043, allocations: 0 / 297.4 MB, free: 8.051 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008345/0.07126, allocations: 0.7614 MB / 298.2 MB, free: 7.25 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005953/0.07186, allocations: 111.1 kB / 298.3 MB, free: 7.145 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003007/0.07486, allocations: 1.543 MB / 299.8 MB, free: 5.551 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001489/0.07501, allocations: 161.9 kB / 300 MB, free: 5.375 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001654/0.07518, allocations: 43.27 kB / 300 MB, free: 5.332 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002303/0.07541, allocations: 146.2 kB / 300.2 MB, free: 5.188 MB / 282.7 MB Notification: Performance of SimCode: time 2.104e-06/0.07541, allocations: 0 / 300.2 MB, free: 5.188 MB / 282.7 MB Notification: Performance of Templates: time 0.03056/0.106, allocations: 20.38 MB / 320.6 MB, free: 0.6953 MB / 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.3649359703995287]