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.0007854/0.0007854, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001357/0.002143, allocations: 445.7 kB / 10.37 MB, free: 328 kB / 10.45 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.00233/0.00233, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001499/0.003829, allocations: 463.6 kB / 11.71 MB, free: 2.453 MB / 13.93 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.8689/0.8689, allocations: 158.6 MB / 171.1 MB, free: 2.586 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1932/1.062, allocations: 49.49 MB / 220.6 MB, free: 1.453 MB / 218.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.433e-06/1.433e-06, allocations: 0 / 221.8 MB, free: 200 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.629e-05/1.772e-05, allocations: 2.312 kB / 221.8 MB, free: 196 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.005503/0.005521, allocations: 2.978 MB / 224.8 MB, free: 13.18 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.005019/0.01054, allocations: 1.228 MB / 226 MB, free: 11.95 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002122/0.01075, allocations: 7.938 kB / 226 MB, free: 11.95 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002755/0.01103, allocations: 87.22 kB / 226.1 MB, free: 11.86 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002242/0.01125, allocations: 122.8 kB / 226.2 MB, free: 11.74 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008199/0.01207, allocations: 407.1 kB / 226.6 MB, free: 11.34 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007017/0.01277, allocations: 0.8033 MB / 227.4 MB, free: 10.54 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001582/0.01293, allocations: 69.67 kB / 227.5 MB, free: 10.46 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000633/0.01356, allocations: 0.5076 MB / 228 MB, free: 9.953 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004276/0.01784, allocations: 1.252 MB / 229.3 MB, free: 8.703 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000119/0.01796, allocations: 68 kB / 229.3 MB, free: 8.637 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002329/0.01819, allocations: 120 kB / 229.5 MB, free: 8.52 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001574/0.01835, allocations: 168 kB / 229.6 MB, free: 8.352 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001901/0.01854, allocations: 179.5 kB / 229.8 MB, free: 8.176 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007582/0.0193, allocations: 0.584 MB / 230.4 MB, free: 7.59 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.635e-05/0.01931, allocations: 4 kB / 230.4 MB, free: 7.586 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.01932, allocations: 0 / 230.4 MB, free: 7.586 MB / 234.7 MB Notification: Performance of Transformations before backend: time 2.135e-05/0.01934, allocations: 0 / 230.4 MB, free: 7.586 MB / 234.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.001872/0.02121, allocations: 1.227 MB / 231.6 MB, free: 6.332 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.02124, allocations: 8.031 kB / 231.6 MB, free: 6.324 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001345/0.02138, allocations: 76.86 kB / 231.7 MB, free: 6.25 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004234/0.0218, allocations: 317.6 kB / 232 MB, free: 5.914 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.974e-05/0.02184, allocations: 33.38 kB / 232 MB, free: 5.883 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.898e-05/0.02192, allocations: 44.33 kB / 232.1 MB, free: 5.84 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008708/0.02279, allocations: 0.7093 MB / 232.8 MB, free: 5.113 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.02281, allocations: 192 / 232.8 MB, free: 5.113 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.628e-05/0.02285, allocations: 20.12 kB / 232.8 MB, free: 5.094 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.02286, allocations: 8 kB / 232.8 MB, free: 5.086 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000799/0.02366, allocations: 0.7248 MB / 233.5 MB, free: 4.363 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002226/0.02589, allocations: 1.661 MB / 235.2 MB, free: 2.652 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005916/0.02648, allocations: 428.9 kB / 235.6 MB, free: 2.215 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003037/0.02678, allocations: 297.6 kB / 235.9 MB, free: 1.918 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.782e-05/0.02683, allocations: 11.94 kB / 235.9 MB, free: 1.906 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005147/0.02734, allocations: 499.6 kB / 236.4 MB, free: 1.402 MB / 234.7 MB Notification: Performance of pre-optimization done (n=47): time 1.613e-06/0.02735, allocations: 0 / 236.4 MB, free: 1.402 MB / 234.7 MB Notification: Performance of matching and sorting (n=49): time 0.004023/0.03137, allocations: 2.65 MB / 239.1 MB, free: 14.69 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.402e-05/0.03141, allocations: 85.11 kB / 239.1 MB, free: 14.59 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005025/0.03192, allocations: 0.6328 MB / 239.8 MB, free: 13.94 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 6.034e-05/0.03198, allocations: 49.69 kB / 239.8 MB, free: 13.89 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/0.0321, allocations: 221.9 kB / 240 MB, free: 13.66 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000125/0.03223, allocations: 174.6 kB / 240.2 MB, free: 13.49 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001703/0.0324, allocations: 118.2 kB / 240.3 MB, free: 13.37 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.03252, allocations: 386.6 kB / 240.7 MB, free: 12.98 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004426/0.03297, allocations: 369.2 kB / 241.1 MB, free: 12.62 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004065/0.03337, allocations: 442.9 kB / 241.5 MB, free: 12.16 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006233/0.034, allocations: 0.6913 MB / 242.2 MB, free: 11.44 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.034, allocations: 0 / 242.2 MB, free: 11.44 MB / 250.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001335/0.03534, allocations: 1.159 MB / 243.3 MB, free: 10.26 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/0.03536, allocations: 8 kB / 243.4 MB, free: 10.25 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.03537, allocations: 4.031 kB / 243.4 MB, free: 10.25 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001273/0.03664, allocations: 1.428 MB / 244.8 MB, free: 8.812 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002512/0.03689, allocations: 119.8 kB / 244.9 MB, free: 8.695 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003537/0.04043, allocations: 4.825 MB / 249.7 MB, free: 3.676 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004283/0.04086, allocations: 143.8 kB / 249.9 MB, free: 3.535 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.066e-05/0.0409, allocations: 23.98 kB / 249.9 MB, free: 3.512 MB / 250.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.0002607/0.04116, allocations: 159.1 kB / 250 MB, free: 3.348 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.475e-05/0.04125, allocations: 55.94 kB / 250.1 MB, free: 3.293 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.633e-05/0.04135, allocations: 98.16 kB / 250.2 MB, free: 3.191 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.04136, allocations: 4 kB / 250.2 MB, free: 3.188 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.04136, allocations: 0 / 250.2 MB, free: 3.188 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.04137, allocations: 0 / 250.2 MB, free: 3.188 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001628/0.043, allocations: 1.65 MB / 251.9 MB, free: 1.5 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.043, allocations: 64 / 251.9 MB, free: 1.5 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002056/0.04321, allocations: 87.88 kB / 251.9 MB, free: 1.414 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001559/0.04336, allocations: 91.48 kB / 252 MB, free: 1.324 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001054/0.04442, allocations: 1.416 MB / 253.4 MB, free: 15.9 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.632e-05/0.04446, allocations: 28.02 kB / 253.5 MB, free: 15.87 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002773/0.04724, allocations: 4.512 MB / 258 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/0.04724, allocations: 3.938 kB / 258 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001486/0.04873, allocations: 1.65 MB / 259.6 MB, free: 9.465 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.893e-05/0.04881, allocations: 20 kB / 259.7 MB, free: 9.445 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004211/0.04923, allocations: 167.8 kB / 259.8 MB, free: 9.281 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000647/0.04987, allocations: 0.5107 MB / 260.3 MB, free: 8.77 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.943e-05/0.04992, allocations: 27.95 kB / 260.4 MB, free: 8.742 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002172/0.05014, allocations: 320.6 kB / 260.7 MB, free: 8.434 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.05014, allocations: 0 / 260.7 MB, free: 8.434 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005143/0.05065, allocations: 180 kB / 260.8 MB, free: 8.258 MB / 266.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.0001945/0.05085, allocations: 140.2 kB / 261 MB, free: 8.113 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009181/0.05177, allocations: 1.008 MB / 262 MB, free: 7.074 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-05/0.05179, allocations: 8 kB / 262 MB, free: 7.066 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005011/0.05229, allocations: 0.632 MB / 262.6 MB, free: 6.406 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003397/0.05263, allocations: 163 kB / 262.8 MB, free: 6.246 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002646/0.05527, allocations: 1.465 MB / 264.3 MB, free: 4.738 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001124/0.05538, allocations: 169.6 kB / 264.4 MB, free: 4.555 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001302/0.05551, allocations: 43.36 kB / 264.5 MB, free: 4.512 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001726/0.05569, allocations: 119.3 kB / 264.6 MB, free: 4.395 MB / 266.7 MB Notification: Performance of SimCode: time 7.61e-07/0.05569, allocations: 0 / 264.6 MB, free: 4.395 MB / 266.7 MB Notification: Performance of Templates: time 0.1313/0.187, allocations: 20.51 MB / 285.1 MB, free: 55.1 MB / 282.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 -ignoreHideResult -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.242715634405613]