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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001864/0.001864, allocations: 104.8 kB / 21.18 MB, free: 0.6992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002296/0.002296, allocations: 181.2 kB / 24.46 MB, free: 4.059 MB / 14.72 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.471/1.471, allocations: 207.6 MB / 235.2 MB, free: 10.02 MB / 190.1 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001815/0.001815, allocations: 47.92 kB / 347.6 MB, free: 9.582 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2554/0.2572, allocations: 49.16 MB / 396.8 MB, free: 9.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003589/0.2608, allocations: 3.003 MB / 399.8 MB, free: 7.395 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002032/0.2629, allocations: 1.222 MB / 401 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000175/0.263, allocations: 8.094 kB / 401 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004309/0.2635, allocations: 84.97 kB / 401.1 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001958/0.2637, allocations: 120.8 kB / 401.2 MB, free: 6.406 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009141/0.2646, allocations: 411.2 kB / 401.6 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008324/0.2654, allocations: 0.8051 MB / 402.4 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001847/0.2656, allocations: 78.45 kB / 402.5 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004518/0.2661, allocations: 372.8 kB / 402.9 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001644/0.2677, allocations: 1.344 MB / 404.2 MB, free: 5.387 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001331/0.2678, allocations: 68.47 kB / 404.3 MB, free: 5.387 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002401/0.2681, allocations: 120.6 kB / 404.4 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002338/0.2683, allocations: 231.9 kB / 404.6 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002835/0.2686, allocations: 349.7 kB / 405 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001024/0.2696, allocations: 0.8802 MB / 405.9 MB, free: 4.668 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2696, allocations: 0 / 405.9 MB, free: 4.668 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2696, allocations: 0 / 405.9 MB, free: 4.668 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.238e-05/0.2696, allocations: 0 / 405.9 MB, free: 4.668 MB / 318.1 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.003436/0.2731, allocations: 1.413 MB / 407.3 MB, free: 3.816 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.2731, allocations: 17.11 kB / 407.3 MB, free: 3.809 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001588/0.2733, allocations: 79.69 kB / 407.4 MB, free: 3.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004571/0.2737, allocations: 369.5 kB / 407.7 MB, free: 3.445 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.087e-05/0.2738, allocations: 28.5 kB / 407.8 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.356e-05/0.2739, allocations: 43.69 kB / 407.8 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001652/0.2755, allocations: 1.159 MB / 409 MB, free: 2.91 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.052e-05/0.2755, allocations: 1.375 kB / 409 MB, free: 2.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.145e-05/0.2756, allocations: 20.09 kB / 409 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.361e-05/0.2756, allocations: 8.781 kB / 409 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002702/0.2783, allocations: 1.742 MB / 410.7 MB, free: 2.348 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003918/0.2822, allocations: 2.435 MB / 413.2 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001565/0.2838, allocations: 0.8947 MB / 414.1 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001033/0.2848, allocations: 0.7005 MB / 414.8 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.748e-05/0.2849, allocations: 8.281 kB / 414.8 MB, free: 376 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001308/0.2862, allocations: 0.9082 MB / 415.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of pre-optimization done (n=47): time 1.883e-06/0.2862, allocations: 0 / 415.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.01106/0.2973, allocations: 5.424 MB / 421.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.253e-05/0.2973, allocations: 81.11 kB / 421.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001353/0.2987, allocations: 0.918 MB / 422.1 MB, free: 9.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.181e-05/0.2988, allocations: 45.7 kB / 422.1 MB, free: 9.789 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002675/0.299, allocations: 296.8 kB / 422.4 MB, free: 9.492 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001657/0.2992, allocations: 170.7 kB / 422.6 MB, free: 9.324 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002382/0.2994, allocations: 122.3 kB / 422.7 MB, free: 9.199 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002025/0.2996, allocations: 378.8 kB / 423.1 MB, free: 8.82 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001397/0.301, allocations: 0.8525 MB / 423.9 MB, free: 7.969 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00139/0.3024, allocations: 0.9363 MB / 424.9 MB, free: 7 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002173/0.3046, allocations: 1.461 MB / 426.3 MB, free: 5.508 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.3046, allocations: 0 / 426.3 MB, free: 5.508 MB / 334.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003903/0.3085, allocations: 2.483 MB / 428.8 MB, free: 3.008 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.3085, allocations: 8.031 kB / 428.8 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.3085, allocations: 7.984 kB / 428.8 MB, free: 2.992 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002234/0.3108, allocations: 1.896 MB / 430.7 MB, free: 1.086 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004973/0.3113, allocations: 111.9 kB / 430.8 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008033/0.3193, allocations: 6.498 MB / 437.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001367/0.3207, allocations: 231.7 kB / 437.6 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.203e-05/0.3207, allocations: 24 kB / 437.6 MB, free: 9.977 MB / 350.1 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.0004631/0.3212, allocations: 260.3 kB / 437.8 MB, free: 9.715 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000142/0.3213, allocations: 75.52 kB / 437.9 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001816/0.3215, allocations: 110.1 kB / 438 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.3215, allocations: 4 kB / 438 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3215, allocations: 0 / 438 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.3215, allocations: 0 / 438 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004332/0.3259, allocations: 3.058 MB / 441.1 MB, free: 6.402 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.3259, allocations: 0 / 441.1 MB, free: 6.402 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004596/0.3263, allocations: 87.86 kB / 441.2 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00228/0.3286, allocations: 1.865 MB / 443 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.373e-05/0.3287, allocations: 23.97 kB / 443.1 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007681/0.3364, allocations: 6.135 MB / 449.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.3364, allocations: 0 / 449.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005218/0.3416, allocations: 3.221 MB / 452.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004428/0.342, allocations: 139.4 kB / 452.5 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001126/0.3421, allocations: 20 kB / 452.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00152/0.3436, allocations: 275.6 kB / 452.8 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001494/0.3451, allocations: 0.5771 MB / 453.4 MB, free: 9.762 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.388e-05/0.3452, allocations: 31.97 kB / 453.4 MB, free: 9.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000907/0.3461, allocations: 0.6709 MB / 454.1 MB, free: 9.066 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3461, allocations: 0 / 454.1 MB, free: 9.066 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000846/0.347, allocations: 184 kB / 454.3 MB, free: 8.887 MB / 366.1 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.0002833/0.3473, allocations: 159 kB / 454.4 MB, free: 8.723 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003251/0.3505, allocations: 1.879 MB / 456.3 MB, free: 6.816 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.3505, allocations: 4.438 kB / 456.3 MB, free: 6.812 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001793/0.3523, allocations: 1.076 MB / 457.4 MB, free: 5.711 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006677/0.353, allocations: 67.03 kB / 457.5 MB, free: 5.641 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004116/0.3571, allocations: 1.966 MB / 459.4 MB, free: 3.637 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000618/0.3577, allocations: 0.9299 MB / 460.4 MB, free: 2.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002282/0.3579, allocations: 43.28 kB / 460.4 MB, free: 2.641 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/0.3581, allocations: 39.42 kB / 460.4 MB, free: 2.602 MB / 366.1 MB Notification: Performance of SimCode: time 1.603e-06/0.3581, allocations: 0 / 460.4 MB, free: 2.602 MB / 366.1 MB Notification: Performance of Templates: time 0.03748/0.3956, allocations: 25.04 MB / 485.5 MB, free: 9.523 MB / 398.1 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.535277628339827]