Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001246/0.001246, allocations: 166.6 kB / 7.636 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.289/1.289, allocations: 170.7 MB / 178.7 MB, free: 15.57 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001803/0.001803, allocations: 107.4 kB / 218 MB, free: 8.344 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.998e-05/1.973e-05, allocations: 4 kB / 262.2 MB, free: 26.38 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0699/0.06994, allocations: 38.77 MB / 301 MB, free: 3.621 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2776/0.3476, allocations: 70.28 MB / 371.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002005/0.3478, allocations: 73.84 kB / 371.3 MB, free: 14.1 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04043/0.3883, allocations: 13.25 MB / 384.6 MB, free: 2.484 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3883, allocations: 0 / 384.6 MB, free: 2.484 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.817e-05/0.3884, allocations: 12 kB / 384.6 MB, free: 2.473 MB / 266.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.002934/0.3913, allocations: 1.11 MB / 385.7 MB, free: 1.359 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.3914, allocations: 12.03 kB / 385.7 MB, free: 1.348 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002212/0.3916, allocations: 83.06 kB / 385.8 MB, free: 1.266 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009292/0.3925, allocations: 0.5782 MB / 386.4 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.116e-05/0.3926, allocations: 15.95 kB / 386.4 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001342/0.3927, allocations: 31.5 kB / 386.4 MB, free: 0.668 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002896/0.3956, allocations: 2.141 MB / 388.6 MB, free: 14.94 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001969/0.3976, allocations: 1.397 MB / 390 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.373e-05/0.3976, allocations: 7.984 kB / 390 MB, free: 13.78 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001125/0.3978, allocations: 8 kB / 390 MB, free: 13.77 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.3978, allocations: 8 kB / 390 MB, free: 13.77 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006156/0.4039, allocations: 3.06 MB / 393.1 MB, free: 11.14 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001333/0.4053, allocations: 1.006 MB / 394.1 MB, free: 10.34 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00103/0.4063, allocations: 0.8479 MB / 394.9 MB, free: 9.676 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.924e-05/0.4064, allocations: 4.5 kB / 394.9 MB, free: 9.672 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001426/0.4078, allocations: 1.104 MB / 396 MB, free: 8.762 MB / 282.7 MB Notification: Performance of pre-optimization done (n=47): time 2.144e-06/0.4079, allocations: 0 / 396 MB, free: 8.762 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.008343/0.4162, allocations: 5.623 MB / 401.6 MB, free: 3.855 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.982e-05/0.4163, allocations: 89.09 kB / 401.7 MB, free: 3.75 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001144/0.4175, allocations: 0.7548 MB / 402.5 MB, free: 3.168 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001277/0.4176, allocations: 45.19 kB / 402.5 MB, free: 3.121 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001942/0.4178, allocations: 292.3 kB / 402.8 MB, free: 2.926 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002011/0.418, allocations: 164.8 kB / 403 MB, free: 2.789 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.656e-05/0.4181, allocations: 11.98 kB / 403 MB, free: 2.777 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000199/0.4183, allocations: 377.8 kB / 403.3 MB, free: 2.426 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001234/0.4196, allocations: 1.027 MB / 404.4 MB, free: 1.625 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001321/0.4209, allocations: 1.117 MB / 405.5 MB, free: 0.7109 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001266/0.4222, allocations: 0.9412 MB / 406.4 MB, free: 15.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.4222, allocations: 4 kB / 406.4 MB, free: 15.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004785/0.427, allocations: 3.238 MB / 409.7 MB, free: 13.23 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.711e-05/0.427, allocations: 8 kB / 409.7 MB, free: 13.22 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.427, allocations: 4 kB / 409.7 MB, free: 13.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01336/0.4404, allocations: 11.43 MB / 421.1 MB, free: 2.121 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007392/0.4412, allocations: 127.9 kB / 421.2 MB, free: 1.996 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01017/0.4514, allocations: 7.36 MB / 428.6 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001962/0.4534, allocations: 295.8 kB / 428.9 MB, free: 10.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002224/0.4536, allocations: 116 kB / 429 MB, free: 9.973 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: supportFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real 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,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0005531/0.4542, allocations: 147.4 kB / 429.1 MB, free: 9.82 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002279/0.4544, allocations: 79.16 kB / 429.2 MB, free: 9.742 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002766/0.4547, allocations: 98.59 kB / 429.3 MB, free: 9.645 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.4547, allocations: 8 kB / 429.3 MB, free: 9.637 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.4548, allocations: 0 / 429.3 MB, free: 9.637 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.4548, allocations: 4 kB / 429.3 MB, free: 9.633 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007393/0.4622, allocations: 4.402 MB / 433.7 MB, free: 5.172 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/0.4623, allocations: 0 / 433.7 MB, free: 5.172 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000547/0.4628, allocations: 91.94 kB / 433.8 MB, free: 5.082 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01363/0.4764, allocations: 11.32 MB / 445.1 MB, free: 9.727 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002087/0.4767, allocations: 35.97 kB / 445.2 MB, free: 9.691 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009556/0.4863, allocations: 7.036 MB / 452.2 MB, free: 2.391 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.388e-06/0.4863, allocations: 0 / 452.2 MB, free: 2.391 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006637/0.493, allocations: 4.244 MB / 456.5 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008232/0.4938, allocations: 404.1 kB / 456.9 MB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001877/0.494, allocations: 24 kB / 456.9 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001741/0.4958, allocations: 307.6 kB / 457.2 MB, free: 13.36 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001524/0.4973, allocations: 0.6666 MB / 457.8 MB, free: 12.69 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001563/0.4975, allocations: 104 kB / 457.9 MB, free: 12.59 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008251/0.4983, allocations: 0.5889 MB / 458.5 MB, free: 12 MB / 346.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4983, allocations: 3.938 kB / 458.5 MB, free: 12 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009697/0.4993, allocations: 204 kB / 458.7 MB, free: 11.8 MB / 346.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003239/0.4997, allocations: 139.1 kB / 458.9 MB, free: 11.65 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00205/0.5017, allocations: 1.611 MB / 460.5 MB, free: 10.02 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.5017, allocations: 0 / 460.5 MB, free: 10.02 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001285/0.503, allocations: 0.9327 MB / 461.4 MB, free: 9.062 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005621/0.5036, allocations: 53.39 kB / 461.5 MB, free: 9.016 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004711/0.5083, allocations: 1.984 MB / 463.5 MB, free: 7 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005626/0.5089, allocations: 0.938 MB / 464.4 MB, free: 6.039 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002975/0.5092, allocations: 67.27 kB / 464.5 MB, free: 5.969 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001548/0.5094, allocations: 47.42 kB / 464.5 MB, free: 5.922 MB / 346.7 MB Notification: Performance of SimCode: time 7.31e-07/0.5094, allocations: 0 / 464.5 MB, free: 5.922 MB / 346.7 MB Notification: Performance of Templates: time 0.1948/0.7042, allocations: 14.02 MB / 478.5 MB, free: 120.5 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1)