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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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=10000,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=10000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001402/0.001402, allocations: 109 kB / 17.15 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 198 kB / 18.07 MB, free: 5.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.477/1.477, allocations: 205.1 MB / 223.9 MB, free: 12.48 MB / 190.1 MB 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.001177/0.001177, allocations: 51.92 kB / 280 MB, free: 3.598 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1077, allocations: 46.63 MB / 326.6 MB, free: 4.902 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.005471/0.1132, allocations: 3.014 MB / 329.6 MB, free: 1.855 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00212/0.1154, allocations: 1.197 MB / 330.8 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001847/0.1156, allocations: 7.938 kB / 330.8 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004302/0.1161, allocations: 67.61 kB / 330.9 MB, free: 0.582 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001868/0.1163, allocations: 99.17 kB / 331 MB, free: 496 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008323/0.1171, allocations: 359.4 kB / 331.3 MB, free: 136 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006777/0.1178, allocations: 0.7606 MB / 332.1 MB, free: 15.37 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002025/0.118, allocations: 85.42 kB / 332.2 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004218/0.1184, allocations: 331 kB / 332.5 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001458/0.1199, allocations: 1.327 MB / 333.8 MB, free: 13.63 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001125/0.12, allocations: 40 kB / 333.9 MB, free: 13.59 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002352/0.1203, allocations: 83.95 kB / 333.9 MB, free: 13.51 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002379/0.1205, allocations: 208.2 kB / 334.1 MB, free: 13.3 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002993/0.1208, allocations: 314.1 kB / 334.5 MB, free: 13 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008009/0.1216, allocations: 0.8253 MB / 335.3 MB, free: 12.17 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.1216, allocations: 4 kB / 335.3 MB, free: 12.16 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.1217, allocations: 0 / 335.3 MB, free: 12.16 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.485e-06/0.1217, allocations: 3.938 kB / 335.3 MB, free: 12.16 MB / 286.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.003684/0.1254, allocations: 1.32 MB / 336.6 MB, free: 10.79 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/0.1254, allocations: 12.03 kB / 336.6 MB, free: 10.78 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002172/0.1257, allocations: 83.98 kB / 336.7 MB, free: 10.7 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005924/0.1263, allocations: 419.5 kB / 337.1 MB, free: 10.24 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.941e-05/0.1263, allocations: 29.38 kB / 337.1 MB, free: 10.21 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.258e-05/0.1264, allocations: 44.31 kB / 337.2 MB, free: 10.17 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001908/0.1283, allocations: 1.158 MB / 338.3 MB, free: 9 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.474e-05/0.1284, allocations: 7.984 kB / 338.3 MB, free: 8.992 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.118e-05/0.1284, allocations: 20 kB / 338.4 MB, free: 8.973 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.932e-05/0.1285, allocations: 8 kB / 338.4 MB, free: 8.965 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002587/0.1311, allocations: 1.744 MB / 340.1 MB, free: 7.223 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004128/0.1352, allocations: 2.486 MB / 342.6 MB, free: 4.652 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001636/0.1369, allocations: 0.9069 MB / 343.5 MB, free: 3.727 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001138/0.138, allocations: 0.7162 MB / 344.2 MB, free: 3.004 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.326e-05/0.1381, allocations: 7.984 kB / 344.2 MB, free: 2.996 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001494/0.1396, allocations: 0.9044 MB / 345.1 MB, free: 2.074 MB / 286.1 MB Notification: Performance of pre-optimization done (n=47): time 2.906e-06/0.1396, allocations: 0 / 345.1 MB, free: 2.074 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.01129/0.1509, allocations: 5.782 MB / 350.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.917e-05/0.151, allocations: 81.11 kB / 351 MB, free: 12.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00125/0.1523, allocations: 0.918 MB / 351.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.384e-05/0.1524, allocations: 53.69 kB / 352 MB, free: 11.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002337/0.1526, allocations: 296.3 kB / 352.3 MB, free: 10.76 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000149/0.1528, allocations: 161.9 kB / 352.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002239/0.153, allocations: 114.2 kB / 352.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.1531, allocations: 378.8 kB / 352.9 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00124/0.1544, allocations: 0.8524 MB / 353.8 MB, free: 9.246 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001289/0.1557, allocations: 0.9363 MB / 354.7 MB, free: 8.277 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0021/0.1578, allocations: 1.461 MB / 356.1 MB, free: 6.785 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.1578, allocations: 4 kB / 356.2 MB, free: 6.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003662/0.1615, allocations: 2.49 MB / 358.6 MB, free: 4.273 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.1615, allocations: 4 kB / 358.6 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.1615, allocations: 4 kB / 358.6 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002109/0.1636, allocations: 1.9 MB / 360.5 MB, free: 2.355 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004988/0.1642, allocations: 115.8 kB / 360.7 MB, free: 2.242 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007573/0.1717, allocations: 6.357 MB / 367 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001315/0.1731, allocations: 227.8 kB / 367.2 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.743e-05/0.1732, allocations: 23.98 kB / 367.3 MB, free: 11.34 MB / 318.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.0004312/0.1736, allocations: 260.1 kB / 367.5 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000129/0.1737, allocations: 75.09 kB / 367.6 MB, free: 11 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001969/0.1739, allocations: 102.1 kB / 367.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.1739, allocations: 4 kB / 367.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.044e-06/0.174, allocations: 4 kB / 367.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.174, allocations: 3.984 kB / 367.7 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003986/0.178, allocations: 3.1 MB / 370.8 MB, free: 7.715 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.97e-06/0.178, allocations: 0 / 370.8 MB, free: 7.715 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004687/0.1785, allocations: 87.86 kB / 370.9 MB, free: 7.629 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002034/0.1805, allocations: 1.869 MB / 372.8 MB, free: 5.75 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.635e-05/0.1806, allocations: 23.95 kB / 372.8 MB, free: 5.727 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2041/0.3847, allocations: 6.079 MB / 378.9 MB, free: 54.94 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.3847, allocations: 3.203 kB / 378.9 MB, free: 54.94 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005992/0.3907, allocations: 3.227 MB / 382.1 MB, free: 54.75 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004201/0.3912, allocations: 208.2 kB / 382.3 MB, free: 54.65 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001256/0.3913, allocations: 23.97 kB / 382.3 MB, free: 54.65 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001596/0.3929, allocations: 269 kB / 382.6 MB, free: 54.65 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001597/0.3945, allocations: 0.5479 MB / 383.1 MB, free: 54.65 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.058e-05/0.3946, allocations: 33.28 kB / 383.2 MB, free: 54.65 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009982/0.3956, allocations: 0.6772 MB / 383.8 MB, free: 54.43 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3956, allocations: 1.156 kB / 383.8 MB, free: 54.43 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001105/0.3967, allocations: 181.9 kB / 384 MB, free: 54.42 MB / 318.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.0003224/0.3971, allocations: 154.6 kB / 384.2 MB, free: 54.31 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003448/0.4005, allocations: 1.927 MB / 386.1 MB, free: 53.75 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.4005, allocations: 0 / 386.1 MB, free: 53.75 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001878/0.4024, allocations: 1.077 MB / 387.2 MB, free: 53.33 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006897/0.4031, allocations: 64.08 kB / 387.2 MB, free: 53.3 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004022/0.4072, allocations: 2.177 MB / 389.4 MB, free: 52.32 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004291/0.4076, allocations: 0.9248 MB / 390.3 MB, free: 51.61 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002367/0.4079, allocations: 46.19 kB / 390.4 MB, free: 51.6 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/0.408, allocations: 35.17 kB / 390.4 MB, free: 51.59 MB / 318.1 MB Notification: Performance of SimCode: time 7.01e-07/0.408, allocations: 2.156 kB / 390.4 MB, free: 51.59 MB / 318.1 MB Notification: Performance of Templates: time 0.02581/0.4338, allocations: 21.99 MB / 412.4 MB, free: 32 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.makefile (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) 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","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches