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.002032/0.002032, allocations: 96.31 kB / 21.73 MB, free: 2.68 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.00241/0.00241, allocations: 168.9 kB / 25.02 MB, free: 8.965 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.521/1.521, allocations: 158.6 MB / 186.8 MB, free: 2.891 MB / 170.7 MB " [Timeout remaining time 178] 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.663e-06/1.663e-06, allocations: 0 / 250.3 MB, free: 7.941 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.167e-05/3.333e-05, allocations: 2.312 kB / 250.3 MB, free: 7.938 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004855/0.004888, allocations: 2.79 MB / 253.1 MB, free: 5.129 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002516/0.007404, allocations: 1.17 MB / 254.3 MB, free: 3.957 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001639/0.007568, allocations: 4 kB / 254.3 MB, free: 3.953 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004526/0.008021, allocations: 91.16 kB / 254.4 MB, free: 3.863 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002537/0.008274, allocations: 122.9 kB / 254.5 MB, free: 3.742 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001039/0.009313, allocations: 415.1 kB / 254.9 MB, free: 3.336 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.00104/0.01035, allocations: 0.8227 MB / 255.7 MB, free: 2.512 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002044/0.01056, allocations: 69.69 kB / 255.8 MB, free: 2.438 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007282/0.01129, allocations: 487.2 kB / 256.3 MB, free: 1.961 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001792/0.01308, allocations: 1.287 MB / 257.6 MB, free: 0.668 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000153/0.01323, allocations: 68 kB / 257.6 MB, free: 0.6016 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002543/0.01349, allocations: 112 kB / 257.7 MB, free: 0.4922 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002794/0.01376, allocations: 239.8 kB / 258 MB, free: 264 kB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003387/0.0141, allocations: 235.4 kB / 258.2 MB, free: 28 kB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001326/0.01543, allocations: 0.9542 MB / 259.2 MB, free: 15.07 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.01544, allocations: 4 kB / 259.2 MB, free: 15.07 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.01544, allocations: 0 / 259.2 MB, free: 15.07 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.548e-06/0.01545, allocations: 3.938 kB / 259.2 MB, free: 15.06 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.004255/0.0197, allocations: 1.404 MB / 260.6 MB, free: 13.61 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/0.01975, allocations: 11.98 kB / 260.6 MB, free: 13.6 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002863/0.02004, allocations: 112.4 kB / 260.7 MB, free: 13.49 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007233/0.02076, allocations: 369.5 kB / 261.1 MB, free: 13.1 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.049e-05/0.02081, allocations: 29.38 kB / 261.1 MB, free: 13.07 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.02094, allocations: 48.33 kB / 261.1 MB, free: 13.03 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002181/0.02312, allocations: 1.154 MB / 262.3 MB, free: 11.86 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.83e-05/0.02315, allocations: 4.188 kB / 262.3 MB, free: 11.86 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.061e-05/0.02323, allocations: 16.12 kB / 262.3 MB, free: 11.84 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.316e-05/0.02325, allocations: 8 kB / 262.3 MB, free: 11.84 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003214/0.02646, allocations: 1.748 MB / 264.1 MB, free: 10.09 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004916/0.03138, allocations: 2.25 MB / 266.3 MB, free: 7.781 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001881/0.03326, allocations: 0.8796 MB / 267.2 MB, free: 6.883 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001318/0.03457, allocations: 0.7084 MB / 267.9 MB, free: 6.168 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.2e-05/0.03464, allocations: 8 kB / 267.9 MB, free: 6.16 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001742/0.03638, allocations: 0.9098 MB / 268.8 MB, free: 5.23 MB / 250.7 MB Notification: Performance of pre-optimization done (n=47): time 2.966e-06/0.03638, allocations: 0 / 268.8 MB, free: 5.23 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.01235/0.04873, allocations: 5.433 MB / 274.3 MB, free: 15.73 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.882e-05/0.04881, allocations: 89.03 kB / 274.3 MB, free: 15.62 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001406/0.05022, allocations: 0.9179 MB / 275.3 MB, free: 14.7 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001204/0.05034, allocations: 57.69 kB / 275.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003384/0.05068, allocations: 288.7 kB / 275.6 MB, free: 14.35 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002469/0.05092, allocations: 170.7 kB / 275.8 MB, free: 14.18 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000292/0.05121, allocations: 122.2 kB / 275.9 MB, free: 14.06 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002842/0.0515, allocations: 378.8 kB / 276.2 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001475/0.05297, allocations: 0.8446 MB / 277.1 MB, free: 12.83 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001537/0.05451, allocations: 0.9363 MB / 278 MB, free: 11.87 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002422/0.05693, allocations: 1.453 MB / 279.5 MB, free: 10.38 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.05693, allocations: 0 / 279.5 MB, free: 10.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004439/0.06137, allocations: 2.514 MB / 282 MB, free: 7.852 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.857e-05/0.0614, allocations: 4 kB / 282 MB, free: 7.848 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.676e-05/0.06142, allocations: 7.938 kB / 282 MB, free: 7.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002541/0.06396, allocations: 1.9 MB / 283.9 MB, free: 5.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005658/0.06453, allocations: 115.8 kB / 284 MB, free: 5.816 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009066/0.07359, allocations: 6.435 MB / 290.5 MB, free: 15.15 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001575/0.07517, allocations: 227.8 kB / 290.7 MB, free: 14.93 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.451e-05/0.07526, allocations: 23.98 kB / 290.7 MB, free: 14.9 MB / 282.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 (supportFriction.free,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,stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1) * 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,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004998/0.07576, allocations: 252.5 kB / 290.9 MB, free: 14.65 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002172/0.07598, allocations: 91.52 kB / 291 MB, free: 14.56 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002344/0.07621, allocations: 110.1 kB / 291.1 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.07622, allocations: 11.94 kB / 291.2 MB, free: 14.43 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.07623, allocations: 0 / 291.2 MB, free: 14.43 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.798e-06/0.07624, allocations: 3.984 kB / 291.2 MB, free: 14.43 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004755/0.08099, allocations: 2.903 MB / 294.1 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.081, allocations: 8 kB / 294.1 MB, free: 11.47 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004954/0.08149, allocations: 79.88 kB / 294.2 MB, free: 11.39 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002409/0.0839, allocations: 1.869 MB / 296 MB, free: 9.512 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.136e-05/0.08397, allocations: 19.97 kB / 296 MB, free: 9.492 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008536/0.09251, allocations: 6.078 MB / 302.1 MB, free: 3.184 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.09251, allocations: 4.062 kB / 302.1 MB, free: 3.18 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00594/0.09845, allocations: 3.238 MB / 305.4 MB, free: 15.9 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000406/0.09886, allocations: 135.5 kB / 305.5 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/0.09897, allocations: 20 kB / 305.5 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001712/0.1007, allocations: 271.6 kB / 305.8 MB, free: 15.48 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001619/0.1023, allocations: 0.5732 MB / 306.4 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.337e-05/0.1024, allocations: 31.97 kB / 306.4 MB, free: 14.88 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008823/0.1033, allocations: 0.6709 MB / 307.1 MB, free: 14.21 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1033, allocations: 0 / 307.1 MB, free: 14.21 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009199/0.1042, allocations: 191.9 kB / 307.2 MB, free: 14.03 MB / 298.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.000357/0.1045, allocations: 143.5 kB / 307.4 MB, free: 13.88 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003474/0.108, allocations: 1.877 MB / 309.3 MB, free: 11.97 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/0.108, allocations: 4 kB / 309.3 MB, free: 11.97 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002102/0.1101, allocations: 1.068 MB / 310.3 MB, free: 10.88 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007387/0.1109, allocations: 114.8 kB / 310.4 MB, free: 10.76 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004788/0.1157, allocations: 1.861 MB / 312.3 MB, free: 8.855 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000429/0.1161, allocations: 322.7 kB / 312.6 MB, free: 8.52 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002279/0.1163, allocations: 39.28 kB / 312.7 MB, free: 8.484 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001839/0.1165, allocations: 44.48 kB / 312.7 MB, free: 8.441 MB / 298.7 MB Notification: Performance of SimCode: time 1.593e-06/0.1165, allocations: 0 / 312.7 MB, free: 8.441 MB / 298.7 MB Notification: Performance of Templates: time 0.03389/0.1504, allocations: 19.62 MB / 332.3 MB, free: 4.77 MB / 314.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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.456326354062185]