Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009477/0.000948, allocations: 185.5 kB / 8.354 MB, free: 0.7305 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.351/1.351, allocations: 194.3 MB / 203.1 MB, free: 13.02 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001735/0.001735, allocations: 115.1 kB / 248.1 MB, free: 24 kB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.5e-05/1.501e-05, allocations: 7.938 kB / 298.1 MB, free: 35.51 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07479/0.07481, allocations: 44.5 MB / 342.6 MB, free: 6.996 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3142/0.3891, allocations: 75.6 MB / 418.2 MB, free: 10.86 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001747/0.3893, allocations: 68.45 kB / 418.2 MB, free: 10.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03633/0.4256, allocations: 13.47 MB / 431.7 MB, free: 6.504 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.4257, allocations: 192 / 431.7 MB, free: 6.504 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.659e-05/0.4257, allocations: 11.38 kB / 431.7 MB, free: 6.504 MB / 298.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.003035/0.4288, allocations: 1.093 MB / 432.8 MB, free: 5.789 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.4288, allocations: 7.688 kB / 432.8 MB, free: 5.789 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002735/0.4291, allocations: 81.61 kB / 432.9 MB, free: 5.746 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007523/0.4299, allocations: 490.3 kB / 433.4 MB, free: 5.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.791e-05/0.4299, allocations: 19.5 kB / 433.4 MB, free: 5.426 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001375/0.4301, allocations: 19.38 kB / 433.4 MB, free: 5.426 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001549/0.4316, allocations: 1.022 MB / 434.4 MB, free: 5.273 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001151/0.4328, allocations: 0.8285 MB / 435.3 MB, free: 5.012 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.426e-05/0.4328, allocations: 3.906 kB / 435.3 MB, free: 5.008 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001021/0.4329, allocations: 0 / 435.3 MB, free: 5.008 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.988e-06/0.433, allocations: 11.5 kB / 435.3 MB, free: 5.008 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004424/0.4374, allocations: 2.342 MB / 437.6 MB, free: 3.973 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007628/0.4382, allocations: 0.6225 MB / 438.2 MB, free: 3.863 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005784/0.4388, allocations: 498.5 kB / 438.7 MB, free: 3.797 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.913e-05/0.4389, allocations: 11.55 kB / 438.7 MB, free: 3.797 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008924/0.4398, allocations: 0.7303 MB / 439.5 MB, free: 3.547 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.164e-06/0.4398, allocations: 0 / 439.5 MB, free: 3.547 MB / 298.7 MB Notification: Performance of matching and sorting (n=51): time 0.005255/0.445, allocations: 3.273 MB / 442.7 MB, free: 2.438 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.122e-05/0.4451, allocations: 85.77 kB / 442.8 MB, free: 2.344 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005404/0.4456, allocations: 0.492 MB / 443.3 MB, free: 2.168 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000112/0.4458, allocations: 47.62 kB / 443.4 MB, free: 2.129 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001654/0.4459, allocations: 279.3 kB / 443.6 MB, free: 1.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00016/0.4461, allocations: 173.8 kB / 443.8 MB, free: 1.859 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.799e-05/0.4462, allocations: 0 / 443.8 MB, free: 1.859 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.4463, allocations: 377.2 kB / 444.2 MB, free: 1.527 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006957/0.447, allocations: 0.4958 MB / 444.7 MB, free: 1.477 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007175/0.4477, allocations: 0.5945 MB / 445.3 MB, free: 1.328 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006106/0.4484, allocations: 430.8 kB / 445.7 MB, free: 1.258 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.4484, allocations: 0 / 445.7 MB, free: 1.258 MB / 298.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.00253/0.4509, allocations: 1.641 MB / 447.3 MB, free: 0 / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.633e-05/0.451, allocations: 4.047 kB / 447.3 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.272e-05/0.451, allocations: 8 kB / 447.3 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005325/0.4564, allocations: 4.121 MB / 451.5 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006033/0.457, allocations: 123.1 kB / 451.6 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007508/0.4645, allocations: 5.474 MB / 457.1 MB, free: 7.152 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001628/0.4662, allocations: 287.5 kB / 457.3 MB, free: 6.875 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001936/0.4664, allocations: 99.75 kB / 457.4 MB, free: 6.781 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): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0003699/0.4668, allocations: 142.2 kB / 457.6 MB, free: 6.637 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002181/0.467, allocations: 71.16 kB / 457.6 MB, free: 6.566 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002897/0.4699, allocations: 1.463 MB / 459.1 MB, free: 5.402 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.468e-06/0.4699, allocations: 11.98 kB / 459.1 MB, free: 5.391 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.4699, allocations: 4 kB / 459.1 MB, free: 5.387 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.47, allocations: 0 / 459.1 MB, free: 5.387 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004486/0.4744, allocations: 2.45 MB / 461.6 MB, free: 3.391 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.4745, allocations: 4 kB / 461.6 MB, free: 3.387 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005861/0.4751, allocations: 95.91 kB / 461.7 MB, free: 3.293 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005356/0.4805, allocations: 4.15 MB / 465.8 MB, free: 15.47 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002016/0.4807, allocations: 30.97 kB / 465.9 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00701/0.4877, allocations: 5.146 MB / 471 MB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/0.4878, allocations: 0 / 471 MB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003992/0.4918, allocations: 2.224 MB / 473.2 MB, free: 8.223 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006217/0.4924, allocations: 312.2 kB / 473.5 MB, free: 7.898 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001835/0.4926, allocations: 12 kB / 473.5 MB, free: 7.887 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001625/0.4942, allocations: 295.7 kB / 473.8 MB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00142/0.4957, allocations: 0.6549 MB / 474.5 MB, free: 6.941 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001821/0.4959, allocations: 91.95 kB / 474.6 MB, free: 6.852 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007348/0.4966, allocations: 491.1 kB / 475.1 MB, free: 6.375 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4966, allocations: 0 / 475.1 MB, free: 6.375 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001159/0.4978, allocations: 219.9 kB / 475.3 MB, free: 6.16 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (35): * Single equations (assignments): 32 * 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.0004117/0.4982, allocations: 151.1 kB / 475.4 MB, free: 6.004 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00247/0.5007, allocations: 1.328 MB / 476.7 MB, free: 4.648 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/0.5007, allocations: 3.75 kB / 476.7 MB, free: 4.648 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001311/0.502, allocations: 0.8116 MB / 477.6 MB, free: 3.816 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005822/0.5026, allocations: 56.3 kB / 477.6 MB, free: 3.766 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005018/0.5077, allocations: 1.828 MB / 479.4 MB, free: 1.898 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000684/0.5084, allocations: 0.9343 MB / 480.4 MB, free: 0.9375 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002788/0.5087, allocations: 39.28 kB / 480.4 MB, free: 0.8945 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.5088, allocations: 35.42 kB / 480.4 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of SimCode: time 9.41e-07/0.5088, allocations: 3.938 kB / 480.5 MB, free: 0.8555 MB / 330.7 MB Notification: Performance of Templates: time 0.02981/0.5386, allocations: 18.12 MB / 498.6 MB, free: 14.63 MB / 362.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1)