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.008735/0.008735, allocations: 166 kB / 15.11 MB, free: 5.582 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.361/1.361, allocations: 170.8 MB / 186.6 MB, free: 1.129 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.001551/0.001551, allocations: 107.3 kB / 226.2 MB, free: 10.11 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003257/0.0003257, allocations: 8 kB / 274.1 MB, free: 10.1 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2025/0.2028, allocations: 38.77 MB / 312.9 MB, free: 38.8 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08962/0.2925, allocations: 71.05 MB / 383.9 MB, free: 3.469 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/0.2928, allocations: 71.97 kB / 384 MB, free: 3.398 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04001/0.3328, allocations: 13.35 MB / 397.4 MB, free: 6.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3329, allocations: 0 / 397.4 MB, free: 6.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.681e-05/0.3329, allocations: 12 kB / 397.4 MB, free: 6.008 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.003064/0.336, allocations: 1.207 MB / 398.6 MB, free: 4.746 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.336, allocations: 8.031 kB / 398.6 MB, free: 4.738 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002143/0.3363, allocations: 83.06 kB / 398.7 MB, free: 4.656 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001215/0.3375, allocations: 0.5848 MB / 399.2 MB, free: 4.027 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.225e-05/0.3376, allocations: 32.95 kB / 399.3 MB, free: 3.996 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001378/0.3377, allocations: 44 kB / 399.3 MB, free: 3.953 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002532/0.3402, allocations: 1.532 MB / 400.9 MB, free: 2.402 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.354e-05/0.3403, allocations: 4 kB / 400.9 MB, free: 2.398 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001209/0.3404, allocations: 27.98 kB / 400.9 MB, free: 2.371 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/0.3404, allocations: 15.98 kB / 400.9 MB, free: 2.355 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00379/0.3442, allocations: 2.325 MB / 403.2 MB, free: 32 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006899/0.3511, allocations: 3.136 MB / 406.4 MB, free: 12.82 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002157/0.3533, allocations: 1.145 MB / 407.5 MB, free: 11.65 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.478e-05/0.3534, allocations: 11.98 kB / 407.5 MB, free: 11.64 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001947/0.3554, allocations: 1.197 MB / 408.7 MB, free: 10.42 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 2.314e-06/0.3554, allocations: 0 / 408.7 MB, free: 10.42 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.01525/0.3706, allocations: 7.893 MB / 416.6 MB, free: 2.371 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.481e-05/0.3708, allocations: 85.05 kB / 416.7 MB, free: 2.27 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001299/0.3721, allocations: 0.8 MB / 417.5 MB, free: 1.465 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001589/0.3722, allocations: 57.69 kB / 417.5 MB, free: 1.402 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002517/0.3725, allocations: 292.3 kB / 417.8 MB, free: 1.113 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00019/0.3727, allocations: 173.8 kB / 418 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.864e-05/0.3728, allocations: 24 kB / 418 MB, free: 0.918 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.373, allocations: 382.8 kB / 418.4 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1843/0.5573, allocations: 1.118 MB / 419.5 MB, free: 90.17 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002898/0.5602, allocations: 1.218 MB / 420.7 MB, free: 90.09 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0022/0.5625, allocations: 1.047 MB / 421.8 MB, free: 90.09 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.226e-06/0.5625, allocations: 0 / 421.8 MB, free: 90.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.006671/0.5692, allocations: 3.473 MB / 425.3 MB, free: 90.02 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.168e-05/0.5692, allocations: 6.719 kB / 425.3 MB, free: 90.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.557e-05/0.5693, allocations: 2.562 kB / 425.3 MB, free: 90.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01057/0.5798, allocations: 11.48 MB / 436.7 MB, free: 85.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006467/0.5805, allocations: 134.4 kB / 436.9 MB, free: 85.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008106/0.5886, allocations: 7.125 MB / 444 MB, free: 78.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001627/0.5903, allocations: 312.2 kB / 444.3 MB, free: 77.9 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002132/0.5906, allocations: 109.7 kB / 444.4 MB, free: 77.8 MB / 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 () * 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 (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.0005388/0.5911, allocations: 268.9 kB / 444.7 MB, free: 77.53 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000228/0.5913, allocations: 75.78 kB / 444.8 MB, free: 77.49 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000234/0.5916, allocations: 102.2 kB / 444.8 MB, free: 77.38 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.5916, allocations: 4 kB / 444.9 MB, free: 77.38 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.5916, allocations: 0 / 444.9 MB, free: 77.38 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.5916, allocations: 8.75 kB / 444.9 MB, free: 77.37 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00712/0.5988, allocations: 4.598 MB / 449.5 MB, free: 72.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-06/0.5988, allocations: 0 / 449.5 MB, free: 72.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004781/0.5993, allocations: 95.94 kB / 449.6 MB, free: 72.64 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009873/0.6092, allocations: 11.38 MB / 460.9 MB, free: 61.23 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001979/0.6094, allocations: 39.97 kB / 461 MB, free: 61.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007153/0.6166, allocations: 6.854 MB / 467.8 MB, free: 54.06 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.6166, allocations: 3.938 kB / 467.8 MB, free: 54.05 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006105/0.6227, allocations: 4.528 MB / 472.4 MB, free: 49.48 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009215/0.6237, allocations: 411.9 kB / 472.8 MB, free: 49.06 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002491/0.624, allocations: 35.98 kB / 472.8 MB, free: 49.03 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001475/0.6254, allocations: 311.7 kB / 473.1 MB, free: 48.72 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001292/0.6267, allocations: 0.6627 MB / 473.8 MB, free: 48.06 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001512/0.6269, allocations: 91.97 kB / 473.9 MB, free: 47.97 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007729/0.6277, allocations: 0.6318 MB / 474.5 MB, free: 47.34 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6277, allocations: 0 / 474.5 MB, free: 47.34 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000921/0.6286, allocations: 222.6 kB / 474.7 MB, free: 47.13 MB / 314.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) * 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 (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.0003225/0.629, allocations: 158.7 kB / 474.9 MB, free: 46.98 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002598/0.6316, allocations: 1.825 MB / 476.7 MB, free: 45.12 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.688e-06/0.6316, allocations: 384 / 476.7 MB, free: 45.12 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001455/0.6331, allocations: 1.043 MB / 477.7 MB, free: 44.06 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005488/0.6336, allocations: 64.88 kB / 477.8 MB, free: 44 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003764/0.6374, allocations: 2.27 MB / 480.1 MB, free: 41.7 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003495/0.6378, allocations: 0.9377 MB / 481 MB, free: 40.74 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002587/0.638, allocations: 70.94 kB / 481.1 MB, free: 40.68 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001408/0.6382, allocations: 43.41 kB / 481.1 MB, free: 40.64 MB / 314.7 MB Notification: Performance of SimCode: time 4.91e-07/0.6382, allocations: 0 / 481.1 MB, free: 40.64 MB / 314.7 MB Notification: Performance of Templates: time 0.0204/0.6586, allocations: 14.9 MB / 496 MB, free: 25.76 MB / 314.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)