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.0009297/0.0009297, allocations: 76.81 kB / 22.28 MB, free: 2.211 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.0009643/0.0009643, allocations: 166.2 kB / 25.7 MB, free: 7.953 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.863/0.863, allocations: 158.6 MB / 187.6 MB, free: 2.785 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.593e-06/1.593e-06, allocations: 0 / 251.5 MB, free: 7.301 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.933e-05/2.092e-05, allocations: 10.25 kB / 251.5 MB, free: 7.289 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004002/0.004023, allocations: 2.93 MB / 254.4 MB, free: 4.332 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00211/0.006134, allocations: 1.216 MB / 255.7 MB, free: 3.113 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001644/0.006298, allocations: 7.938 kB / 255.7 MB, free: 3.105 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003859/0.006684, allocations: 83.23 kB / 255.7 MB, free: 3.023 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002162/0.0069, allocations: 122.9 kB / 255.9 MB, free: 2.902 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007706/0.007671, allocations: 419.1 kB / 256.3 MB, free: 2.492 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007141/0.008385, allocations: 0.8188 MB / 257.1 MB, free: 1.672 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001515/0.008536, allocations: 69.72 kB / 257.2 MB, free: 1.594 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005705/0.009107, allocations: 487.2 kB / 257.6 MB, free: 1.117 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001278/0.01039, allocations: 1.299 MB / 258.9 MB, free: 15.82 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000105/0.01049, allocations: 72 kB / 259 MB, free: 15.75 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001851/0.01068, allocations: 115.9 kB / 259.1 MB, free: 15.63 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001854/0.01086, allocations: 231.8 kB / 259.3 MB, free: 15.41 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000229/0.01109, allocations: 235.4 kB / 259.6 MB, free: 15.18 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007089/0.0118, allocations: 0.697 MB / 260.3 MB, free: 14.48 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.0118, allocations: 3.984 kB / 260.3 MB, free: 14.47 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.0118, allocations: 0 / 260.3 MB, free: 14.47 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.01181, allocations: 0 / 260.3 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.001812/0.01362, allocations: 1.087 MB / 261.4 MB, free: 13.36 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.01366, allocations: 19.98 kB / 261.4 MB, free: 13.34 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001525/0.01381, allocations: 76.86 kB / 261.5 MB, free: 13.26 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004371/0.01425, allocations: 329.5 kB / 261.8 MB, free: 12.91 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.941e-05/0.01429, allocations: 29.38 kB / 261.8 MB, free: 12.89 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.873e-05/0.01439, allocations: 44.33 kB / 261.9 MB, free: 12.84 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00101/0.0154, allocations: 0.7055 MB / 262.6 MB, free: 12.12 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/0.01542, allocations: 192 / 262.6 MB, free: 12.12 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.927e-05/0.01547, allocations: 20.12 kB / 262.6 MB, free: 12.11 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/0.01549, allocations: 8 kB / 262.6 MB, free: 12.1 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009546/0.01644, allocations: 0.7326 MB / 263.3 MB, free: 11.36 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002461/0.0189, allocations: 1.65 MB / 265 MB, free: 9.668 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006467/0.01955, allocations: 439.8 kB / 265.4 MB, free: 9.223 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000341/0.01989, allocations: 297.6 kB / 265.7 MB, free: 8.926 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.623e-05/0.01995, allocations: 11.98 kB / 265.7 MB, free: 8.914 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005784/0.02053, allocations: 0.4917 MB / 266.2 MB, free: 8.406 MB / 250.7 MB Notification: Performance of pre-optimization done (n=47): time 1.653e-06/0.02053, allocations: 0 / 266.2 MB, free: 8.406 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.004632/0.02516, allocations: 2.635 MB / 268.8 MB, free: 5.707 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.134e-05/0.0252, allocations: 81.11 kB / 268.9 MB, free: 5.609 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005619/0.02576, allocations: 0.6406 MB / 269.5 MB, free: 4.957 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 7.039e-05/0.02583, allocations: 45.7 kB / 269.6 MB, free: 4.906 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.02597, allocations: 221.9 kB / 269.8 MB, free: 4.684 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/0.02611, allocations: 178.6 kB / 270 MB, free: 4.508 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002009/0.02631, allocations: 118.2 kB / 270.1 MB, free: 4.387 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.02644, allocations: 382.6 kB / 270.5 MB, free: 4.004 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004878/0.02693, allocations: 365.2 kB / 270.8 MB, free: 3.648 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004621/0.02739, allocations: 450.8 kB / 271.3 MB, free: 3.176 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006972/0.02809, allocations: 0.6837 MB / 272 MB, free: 2.461 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.02809, allocations: 0 / 272 MB, free: 2.461 MB / 250.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001533/0.02963, allocations: 1.159 MB / 273.1 MB, free: 1.285 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.02964, allocations: 4 kB / 273.1 MB, free: 1.281 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.02965, allocations: 4 kB / 273.1 MB, free: 1.277 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001547/0.0312, allocations: 1.432 MB / 274.6 MB, free: 15.83 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003355/0.03153, allocations: 103.8 kB / 274.7 MB, free: 15.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004247/0.03578, allocations: 4.829 MB / 279.5 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005889/0.03637, allocations: 151.8 kB / 279.6 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.808e-05/0.03642, allocations: 12 kB / 279.6 MB, free: 10.55 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.0002158/0.03663, allocations: 163.1 kB / 279.8 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.03675, allocations: 59.94 kB / 279.9 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001174/0.03687, allocations: 90.17 kB / 279.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.03687, allocations: 4 kB / 280 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.03688, allocations: 4 kB / 280 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.03688, allocations: 3.984 kB / 280 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002176/0.03906, allocations: 1.654 MB / 281.6 MB, free: 8.527 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.03906, allocations: 0 / 281.6 MB, free: 8.527 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003033/0.03936, allocations: 80 kB / 281.7 MB, free: 8.449 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001406/0.04077, allocations: 1.416 MB / 283.1 MB, free: 7.023 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.411e-05/0.04083, allocations: 23.97 kB / 283.1 MB, free: 7 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003901/0.04473, allocations: 4.519 MB / 287.6 MB, free: 2.281 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.04473, allocations: 4.031 kB / 287.7 MB, free: 2.277 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002037/0.04676, allocations: 1.627 MB / 289.3 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002278/0.04699, allocations: 99.34 kB / 289.4 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001053/0.0471, allocations: 23.94 kB / 289.4 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007101/0.04781, allocations: 175.7 kB / 289.6 MB, free: 332 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001081/0.04889, allocations: 0.5068 MB / 290.1 MB, free: 15.82 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.046e-05/0.04895, allocations: 23.95 kB / 290.1 MB, free: 15.79 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000326/0.04927, allocations: 316.6 kB / 290.4 MB, free: 15.48 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.04927, allocations: 0 / 290.4 MB, free: 15.48 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007418/0.05002, allocations: 184 kB / 290.6 MB, free: 15.3 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.0002619/0.05028, allocations: 144.2 kB / 290.7 MB, free: 15.16 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001249/0.05153, allocations: 1.008 MB / 291.7 MB, free: 14.12 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/0.05154, allocations: 4.438 kB / 291.7 MB, free: 14.12 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000692/0.05223, allocations: 0.6353 MB / 292.4 MB, free: 13.45 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004888/0.05272, allocations: 107.1 kB / 292.5 MB, free: 13.35 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002708/0.05543, allocations: 1.427 MB / 293.9 MB, free: 11.88 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001496/0.05558, allocations: 169.8 kB / 294.1 MB, free: 11.69 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001852/0.05576, allocations: 43.36 kB / 294.1 MB, free: 11.64 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002477/0.05601, allocations: 123.3 kB / 294.2 MB, free: 11.52 MB / 282.7 MB Notification: Performance of SimCode: time 8.52e-07/0.05601, allocations: 0 / 294.2 MB, free: 11.52 MB / 282.7 MB Notification: Performance of Templates: time 0.02521/0.08122, allocations: 20.27 MB / 314.5 MB, free: 7.137 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: 2.998545744922012]