Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008077/0.0008077, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001321/0.002128, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008163/0.0008163, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001068/0.001884, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9791/0.9791, allocations: 177.5 MB / 190 MB, free: 4.766 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09464/1.074, allocations: 53.87 MB / 243.9 MB, free: 14.82 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.953e-06/1.953e-06, allocations: 0 / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.016e-05/2.211e-05, allocations: 5.406 kB / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004601/0.004623, allocations: 3.13 MB / 248.3 MB, free: 10.4 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002586/0.007209, allocations: 1.355 MB / 249.7 MB, free: 9.039 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002292/0.007438, allocations: 8 kB / 249.7 MB, free: 9.031 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003858/0.007824, allocations: 103 kB / 249.8 MB, free: 8.93 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003146/0.008139, allocations: 134.8 kB / 249.9 MB, free: 8.797 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009395/0.009078, allocations: 430.8 kB / 250.3 MB, free: 8.375 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009088/0.009987, allocations: 0.819 MB / 251.2 MB, free: 7.555 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001729/0.01016, allocations: 73.72 kB / 251.2 MB, free: 7.48 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009165/0.01108, allocations: 0.5281 MB / 251.8 MB, free: 6.949 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001526/0.0126, allocations: 1.388 MB / 253.2 MB, free: 5.559 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001698/0.01277, allocations: 68 kB / 253.2 MB, free: 5.492 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003103/0.01308, allocations: 135.8 kB / 253.3 MB, free: 5.359 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001878/0.01327, allocations: 172 kB / 253.5 MB, free: 5.191 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000218/0.01349, allocations: 175.6 kB / 253.7 MB, free: 5.02 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007804/0.01427, allocations: 0.6268 MB / 254.3 MB, free: 4.391 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.246e-05/0.01428, allocations: 0 / 254.3 MB, free: 4.391 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.01428, allocations: 4 kB / 254.3 MB, free: 4.387 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.139e-05/0.0143, allocations: 0 / 254.3 MB, free: 4.387 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.002158/0.01646, allocations: 1.25 MB / 255.6 MB, free: 3.109 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.0165, allocations: 8.625 kB / 255.6 MB, free: 3.102 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004715/0.01697, allocations: 181.9 kB / 255.8 MB, free: 2.906 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004722/0.01744, allocations: 329.5 kB / 256.1 MB, free: 2.559 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.435e-05/0.01749, allocations: 33.38 kB / 256.1 MB, free: 2.523 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.178e-05/0.01758, allocations: 40.36 kB / 256.1 MB, free: 2.484 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008269/0.01841, allocations: 486.5 kB / 256.6 MB, free: 1.996 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.01843, allocations: 4.141 kB / 256.6 MB, free: 1.992 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.78e-05/0.01849, allocations: 20.12 kB / 256.6 MB, free: 1.973 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.0185, allocations: 8 kB / 256.7 MB, free: 1.965 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005864/0.01908, allocations: 274.3 kB / 256.9 MB, free: 1.695 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001967/0.02105, allocations: 0.9808 MB / 257.9 MB, free: 0.668 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005192/0.02157, allocations: 249 kB / 258.1 MB, free: 416 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001993/0.02177, allocations: 101.7 kB / 258.2 MB, free: 308 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.532e-05/0.02182, allocations: 8 kB / 258.3 MB, free: 300 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004515/0.02228, allocations: 311.1 kB / 258.6 MB, free: 15.97 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 1.963e-06/0.02228, allocations: 0 / 258.6 MB, free: 15.97 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.003492/0.02577, allocations: 1.349 MB / 259.9 MB, free: 14.56 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.447e-05/0.02581, allocations: 81.11 kB / 260 MB, free: 14.46 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005588/0.02637, allocations: 0.6148 MB / 260.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.391e-05/0.02645, allocations: 49.69 kB / 260.7 MB, free: 13.78 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001404/0.02659, allocations: 225.9 kB / 260.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000148/0.02673, allocations: 182.6 kB / 261 MB, free: 13.38 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001936/0.02693, allocations: 122.2 kB / 261.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.02706, allocations: 382.6 kB / 261.5 MB, free: 12.87 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003012/0.02736, allocations: 125.2 kB / 261.7 MB, free: 12.75 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002645/0.02763, allocations: 203 kB / 261.9 MB, free: 12.52 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004003/0.02803, allocations: 294.7 kB / 262.2 MB, free: 12.2 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.02803, allocations: 0 / 262.2 MB, free: 12.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0009702/0.029, allocations: 476.8 kB / 262.6 MB, free: 11.71 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.02902, allocations: 8 kB / 262.6 MB, free: 11.71 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.02903, allocations: 7.984 kB / 262.6 MB, free: 11.7 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006965/0.02973, allocations: 414.4 kB / 263 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003457/0.03007, allocations: 111.9 kB / 263.1 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003394/0.03347, allocations: 3.63 MB / 266.8 MB, free: 7.348 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005817/0.03405, allocations: 143.8 kB / 266.9 MB, free: 7.207 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.253e-05/0.0341, allocations: 23.98 kB / 266.9 MB, free: 7.184 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,7), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002147/0.03432, allocations: 159.1 kB / 267.1 MB, free: 7.02 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/0.03443, allocations: 55.94 kB / 267.1 MB, free: 6.965 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001276/0.03456, allocations: 98.16 kB / 267.2 MB, free: 6.855 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.03457, allocations: 4 kB / 267.2 MB, free: 6.852 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.03457, allocations: 48 / 267.2 MB, free: 6.852 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.03458, allocations: 3.984 kB / 267.3 MB, free: 6.848 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001473/0.03605, allocations: 0.7204 MB / 268 MB, free: 6.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.698e-06/0.03605, allocations: 8 kB / 268 MB, free: 6.082 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002963/0.03635, allocations: 87.88 kB / 268.1 MB, free: 5.996 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002123/0.03656, allocations: 79.5 kB / 268.1 MB, free: 5.918 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006242/0.03719, allocations: 410.2 kB / 268.5 MB, free: 5.508 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.969e-05/0.03724, allocations: 19.97 kB / 268.6 MB, free: 5.488 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00287/0.04011, allocations: 3.356 MB / 271.9 MB, free: 1.934 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.04011, allocations: 0 / 271.9 MB, free: 1.934 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001205/0.04132, allocations: 0.6659 MB / 272.6 MB, free: 1.23 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.893e-05/0.04141, allocations: 20 kB / 272.6 MB, free: 1.211 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006674/0.04208, allocations: 167.8 kB / 272.8 MB, free: 1.047 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001062/0.04314, allocations: 0.5146 MB / 273.3 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.981e-05/0.04321, allocations: 27.95 kB / 273.3 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002912/0.0435, allocations: 280.6 kB / 273.6 MB, free: 240 kB / 266.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.04351, allocations: 0 / 273.6 MB, free: 240 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007698/0.04427, allocations: 183.9 kB / 273.8 MB, free: 56 kB / 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001437/0.04571, allocations: 0.504 MB / 274.3 MB, free: 15.74 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009622/0.04667, allocations: 0.5927 MB / 274.9 MB, free: 15.11 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-05/0.04669, allocations: 12 kB / 274.9 MB, free: 15.1 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005692/0.04726, allocations: 469.4 kB / 275.3 MB, free: 14.61 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000653/0.04792, allocations: 495.5 kB / 275.8 MB, free: 14.05 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003959/0.05188, allocations: 1.34 MB / 277.2 MB, free: 12.67 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001571/0.05203, allocations: 169.6 kB / 277.3 MB, free: 12.48 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002025/0.05224, allocations: 43.41 kB / 277.4 MB, free: 12.44 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000261/0.0525, allocations: 123.3 kB / 277.5 MB, free: 12.32 MB / 282.7 MB Notification: Performance of SimCode: time 1.283e-06/0.0525, allocations: 0 / 277.5 MB, free: 12.32 MB / 282.7 MB Notification: Performance of Templates: time 0.1221/0.1746, allocations: 15.45 MB / 292.9 MB, free: 33.93 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.086193840019405]