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.001053/0.001053, allocations: 182.7 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.411/1.411, allocations: 194.3 MB / 208.4 MB, free: 6.719 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.001672/0.001672, allocations: 116.7 kB / 253.5 MB, free: 9.594 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.185e-05/3.186e-05, allocations: 8 kB / 304.9 MB, free: 29.78 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0898/0.08985, allocations: 44.51 MB / 349.4 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3421/0.432, allocations: 76.27 MB / 425.7 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001874/0.4322, allocations: 72.89 kB / 425.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0362/0.4684, allocations: 13.55 MB / 439.3 MB, free: 5.578 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4685, allocations: 0 / 439.3 MB, free: 5.578 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.179e-05/0.4685, allocations: 11.62 kB / 439.3 MB, free: 5.578 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.003015/0.4715, allocations: 1.082 MB / 440.4 MB, free: 4.656 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.4716, allocations: 12.22 kB / 440.4 MB, free: 4.645 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001703/0.4718, allocations: 79.02 kB / 440.5 MB, free: 4.566 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006635/0.4724, allocations: 496.5 kB / 441 MB, free: 4.105 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.285e-05/0.4725, allocations: 27.91 kB / 441 MB, free: 4.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.4726, allocations: 42.45 kB / 441.1 MB, free: 4.059 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001321/0.4739, allocations: 0.872 MB / 441.9 MB, free: 3.402 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.028e-05/0.474, allocations: 11.94 kB / 442 MB, free: 3.391 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001019/0.4741, allocations: 16.31 kB / 442 MB, free: 3.387 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.243e-05/0.4741, allocations: 8 kB / 442 MB, free: 3.379 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001566/0.4757, allocations: 1.038 MB / 443 MB, free: 2.621 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004551/0.4802, allocations: 2.411 MB / 445.4 MB, free: 0.582 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009043/0.4812, allocations: 0.6448 MB / 446.1 MB, free: 112 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007806/0.482, allocations: 0.5005 MB / 446.6 MB, free: 15.76 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.934e-05/0.482, allocations: 11.45 kB / 446.6 MB, free: 15.75 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001229/0.4833, allocations: 0.7488 MB / 447.3 MB, free: 15.17 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 3.125e-06/0.4833, allocations: 0 / 447.3 MB, free: 15.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.006374/0.4897, allocations: 3.335 MB / 450.7 MB, free: 12.38 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.724e-05/0.4898, allocations: 81.11 kB / 450.7 MB, free: 12.28 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007891/0.4906, allocations: 0.5314 MB / 451.3 MB, free: 11.84 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000111/0.4907, allocations: 45.39 kB / 451.3 MB, free: 11.8 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002201/0.4909, allocations: 293.6 kB / 451.6 MB, free: 11.61 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002306/0.4912, allocations: 174.6 kB / 451.8 MB, free: 11.48 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.582e-05/0.4912, allocations: 17.81 kB / 451.8 MB, free: 11.47 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.4914, allocations: 381.6 kB / 452.2 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008268/0.4922, allocations: 0.5128 MB / 452.7 MB, free: 10.77 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008896/0.4931, allocations: 0.5967 MB / 453.3 MB, free: 10.31 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007362/0.4939, allocations: 442.6 kB / 453.7 MB, free: 9.988 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.4939, allocations: 0 / 453.7 MB, free: 9.988 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003239/0.4971, allocations: 1.684 MB / 455.4 MB, free: 8.688 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.543e-05/0.4972, allocations: 12 kB / 455.4 MB, free: 8.676 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.601e-05/0.4972, allocations: 11.98 kB / 455.4 MB, free: 8.664 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005338/0.5026, allocations: 4.126 MB / 459.5 MB, free: 4.883 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006168/0.5032, allocations: 121.2 kB / 459.7 MB, free: 4.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007646/0.5109, allocations: 5.397 MB / 465.1 MB, free: 15.83 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001704/0.5126, allocations: 301.1 kB / 465.4 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001603/0.5128, allocations: 99.42 kB / 465.4 MB, free: 15.46 MB / 330.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,$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.0003283/0.5131, allocations: 143.2 kB / 465.6 MB, free: 15.33 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001622/0.5133, allocations: 75.14 kB / 465.7 MB, free: 15.26 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003016/0.5163, allocations: 1.492 MB / 467.2 MB, free: 14.08 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.5163, allocations: 7.938 kB / 467.2 MB, free: 14.07 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/0.5164, allocations: 0 / 467.2 MB, free: 14.07 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.5164, allocations: 0 / 467.2 MB, free: 14.07 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004565/0.5209, allocations: 2.527 MB / 469.7 MB, free: 12.01 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.521, allocations: 4.094 kB / 469.7 MB, free: 12 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005049/0.5215, allocations: 94.44 kB / 469.8 MB, free: 11.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006064/0.5276, allocations: 4.148 MB / 473.9 MB, free: 8.094 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001637/0.5278, allocations: 45.39 kB / 474 MB, free: 8.059 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007002/0.5348, allocations: 5.104 MB / 479.1 MB, free: 2.703 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/0.5348, allocations: 7.984 kB / 479.1 MB, free: 2.695 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004416/0.5392, allocations: 2.248 MB / 481.3 MB, free: 396 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007581/0.54, allocations: 320.1 kB / 481.6 MB, free: 56 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000147/0.5402, allocations: 24 kB / 481.7 MB, free: 32 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001618/0.5418, allocations: 303.7 kB / 482 MB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001523/0.5434, allocations: 0.6588 MB / 482.6 MB, free: 15.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001527/0.5435, allocations: 87.97 kB / 482.7 MB, free: 14.99 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007073/0.5442, allocations: 0.5147 MB / 483.2 MB, free: 14.48 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.5442, allocations: 0 / 483.2 MB, free: 14.48 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001022/0.5453, allocations: 243.9 kB / 483.5 MB, free: 14.24 MB / 346.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.0003401/0.5456, allocations: 151.1 kB / 483.6 MB, free: 14.09 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00241/0.548, allocations: 1.373 MB / 485 MB, free: 12.69 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.5481, allocations: 4.125 kB / 485 MB, free: 12.68 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001437/0.5495, allocations: 0.8478 MB / 485.8 MB, free: 11.81 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005316/0.5501, allocations: 58.91 kB / 485.9 MB, free: 11.75 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004714/0.5548, allocations: 1.846 MB / 487.7 MB, free: 9.867 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00061/0.5554, allocations: 0.934 MB / 488.7 MB, free: 8.906 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002606/0.5557, allocations: 39.28 kB / 488.7 MB, free: 8.867 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.5558, allocations: 35.42 kB / 488.8 MB, free: 8.832 MB / 346.7 MB Notification: Performance of SimCode: time 6.82e-07/0.5558, allocations: 0 / 488.8 MB, free: 8.832 MB / 346.7 MB Notification: Performance of Templates: time 0.03244/0.5883, allocations: 20.65 MB / 0.4975 GB, free: 4.07 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)