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.0009819/0.0009819, allocations: 169.8 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.36/1.36, allocations: 170.6 MB / 183.8 MB, free: 11.42 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.001469/0.001469, allocations: 114.8 kB / 223.2 MB, free: 4.043 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.774e-05/2.777e-05, allocations: 0 / 268.9 MB, free: 20.92 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07981/0.07986, allocations: 38.76 MB / 307.6 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2777/0.3576, allocations: 70.96 MB / 378.6 MB, free: 5.348 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001904/0.3578, allocations: 65.28 kB / 378.6 MB, free: 5.316 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04113/0.399, allocations: 13.34 MB / 392 MB, free: 9.48 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.399, allocations: 0 / 392 MB, free: 9.48 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.971e-05/0.3991, allocations: 12 kB / 392 MB, free: 9.469 MB / 282.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.002884/0.402, allocations: 1.113 MB / 393.1 MB, free: 8.348 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.402, allocations: 12.03 kB / 393.1 MB, free: 8.336 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002103/0.4022, allocations: 91.03 kB / 393.2 MB, free: 8.246 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001161/0.4034, allocations: 0.5791 MB / 393.8 MB, free: 7.695 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.714e-05/0.4035, allocations: 31.48 kB / 393.8 MB, free: 7.676 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001471/0.4036, allocations: 39.62 kB / 393.9 MB, free: 7.648 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002082/0.4057, allocations: 1.454 MB / 395.3 MB, free: 6.465 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.601e-05/0.4058, allocations: 11.78 kB / 395.3 MB, free: 6.457 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001182/0.4059, allocations: 27.48 kB / 395.3 MB, free: 6.441 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.4059, allocations: 8 kB / 395.4 MB, free: 6.434 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002777/0.4087, allocations: 2.159 MB / 397.5 MB, free: 4.691 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006446/0.4151, allocations: 3.135 MB / 400.7 MB, free: 1.996 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00149/0.4166, allocations: 1.03 MB / 401.7 MB, free: 1.18 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001108/0.4178, allocations: 0.859 MB / 402.5 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.987e-05/0.4179, allocations: 11.55 kB / 402.6 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001618/0.4195, allocations: 1.125 MB / 403.7 MB, free: 15.56 MB / 298.7 MB Notification: Performance of pre-optimization done (n=47): time 2.364e-06/0.4195, allocations: 0 / 403.7 MB, free: 15.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.008339/0.4278, allocations: 5.729 MB / 409.4 MB, free: 10.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.27e-05/0.4279, allocations: 84.92 kB / 409.5 MB, free: 10.49 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001174/0.4291, allocations: 0.7881 MB / 410.3 MB, free: 9.875 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001308/0.4292, allocations: 59.81 kB / 410.3 MB, free: 9.824 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002082/0.4295, allocations: 295.6 kB / 410.6 MB, free: 9.637 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001843/0.4296, allocations: 173.2 kB / 410.8 MB, free: 9.492 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.596e-05/0.4297, allocations: 22.81 kB / 410.8 MB, free: 9.48 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.4299, allocations: 382.2 kB / 411.2 MB, free: 9.125 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001302/0.4312, allocations: 1.045 MB / 412.2 MB, free: 8.301 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001386/0.4326, allocations: 1.137 MB / 413.4 MB, free: 7.371 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001236/0.4338, allocations: 0.9602 MB / 414.3 MB, free: 6.582 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.4339, allocations: 0 / 414.3 MB, free: 6.582 MB / 298.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004773/0.4386, allocations: 3.32 MB / 417.6 MB, free: 3.816 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/0.4387, allocations: 15.92 kB / 417.7 MB, free: 3.801 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.4387, allocations: 0 / 417.7 MB, free: 3.801 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01241/0.4511, allocations: 11.43 MB / 429.1 MB, free: 8.414 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000712/0.4519, allocations: 135.8 kB / 429.2 MB, free: 8.281 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009113/0.461, allocations: 7.107 MB / 436.3 MB, free: 0.875 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001685/0.4627, allocations: 315.7 kB / 436.6 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001688/0.4629, allocations: 108 kB / 436.7 MB, free: 472 kB / 314.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): 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.0003237/0.4632, allocations: 151.3 kB / 436.9 MB, free: 316 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002048/0.4634, allocations: 75.16 kB / 437 MB, free: 240 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000265/0.4637, allocations: 106.3 kB / 437.1 MB, free: 128 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.156e-06/0.4637, allocations: 8 kB / 437.1 MB, free: 120 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.4637, allocations: 3.953 kB / 437.1 MB, free: 116 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.4638, allocations: 4 kB / 437.1 MB, free: 112 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007406/0.4712, allocations: 4.499 MB / 441.6 MB, free: 11.54 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.4712, allocations: 4 kB / 441.6 MB, free: 11.53 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005127/0.4717, allocations: 95.94 kB / 441.7 MB, free: 11.44 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01303/0.4848, allocations: 11.34 MB / 453 MB, free: 76 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002138/0.485, allocations: 47.97 kB / 453.1 MB, free: 28 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00924/0.4943, allocations: 6.8 MB / 459.9 MB, free: 8.934 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.4943, allocations: 8.094 kB / 459.9 MB, free: 8.926 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006527/0.5009, allocations: 4.291 MB / 464.2 MB, free: 4.582 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009204/0.5018, allocations: 412.1 kB / 464.6 MB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002357/0.5021, allocations: 28 kB / 464.6 MB, free: 4.133 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001737/0.5038, allocations: 311.7 kB / 464.9 MB, free: 3.828 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001548/0.5054, allocations: 0.6666 MB / 465.6 MB, free: 3.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001842/0.5056, allocations: 95.97 kB / 465.7 MB, free: 3.066 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009593/0.5065, allocations: 0.628 MB / 466.3 MB, free: 2.445 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5066, allocations: 0 / 466.3 MB, free: 2.445 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001028/0.5076, allocations: 223.9 kB / 466.5 MB, free: 2.227 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.0003815/0.508, allocations: 147.2 kB / 466.6 MB, free: 2.07 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002225/0.5102, allocations: 1.66 MB / 468.3 MB, free: 392 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.5102, allocations: 3.938 kB / 468.3 MB, free: 388 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1577/0.6679, allocations: 0.9529 MB / 469.3 MB, free: 117.6 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006424/0.6686, allocations: 57.75 kB / 469.3 MB, free: 117.6 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004776/0.6734, allocations: 2.005 MB / 471.3 MB, free: 117.3 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004463/0.6739, allocations: 0.9332 MB / 472.3 MB, free: 116.6 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003232/0.6742, allocations: 68.94 kB / 472.3 MB, free: 116.6 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001567/0.6744, allocations: 47.31 kB / 472.4 MB, free: 116.6 MB / 346.7 MB Notification: Performance of SimCode: time 2.194e-06/0.6744, allocations: 0 / 472.4 MB, free: 116.6 MB / 346.7 MB Notification: Performance of Templates: time 0.02235/0.6967, allocations: 14.91 MB / 487.3 MB, free: 113.6 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)