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.001081/0.001081, allocations: 183.2 kB / 16.39 MB, free: 5.762 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.208/1.208, allocations: 194.5 MB / 211.6 MB, free: 3.062 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.001445/0.001445, allocations: 118.2 kB / 256.9 MB, free: 4.348 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002811/0.0002811, allocations: 8 kB / 310.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06934/0.06964, allocations: 44.5 MB / 355.1 MB, free: 2.359 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2313/0.301, allocations: 76.35 MB / 431.4 MB, free: 13.24 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002163/0.3013, allocations: 68.28 kB / 431.5 MB, free: 13.21 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03375/0.335, allocations: 13.58 MB / 445.1 MB, free: 1.371 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3351, allocations: 0 / 445.1 MB, free: 1.371 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.357e-05/0.3351, allocations: 12 kB / 445.1 MB, free: 1.359 MB / 314.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.002335/0.3375, allocations: 1.181 MB / 446.3 MB, free: 176 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.233e-05/0.3375, allocations: 8.031 kB / 446.3 MB, free: 168 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001443/0.3377, allocations: 79.02 kB / 446.3 MB, free: 88 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008539/0.3385, allocations: 0.4893 MB / 446.8 MB, free: 15.61 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.852e-05/0.3386, allocations: 26.25 kB / 446.9 MB, free: 15.59 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001119/0.3387, allocations: 37.12 kB / 446.9 MB, free: 15.57 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00174/0.3404, allocations: 0.9626 MB / 447.9 MB, free: 14.82 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.885e-05/0.3405, allocations: 0.9375 kB / 447.9 MB, free: 14.82 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.021e-05/0.3406, allocations: 14.94 kB / 447.9 MB, free: 14.82 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.3406, allocations: 8 kB / 447.9 MB, free: 14.81 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002344/0.3429, allocations: 1.209 MB / 449.1 MB, free: 13.89 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004948/0.3479, allocations: 2.411 MB / 451.5 MB, free: 11.6 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001499/0.3494, allocations: 0.7625 MB / 452.3 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.612e-05/0.3495, allocations: 11.94 kB / 452.3 MB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001481/0.351, allocations: 0.8222 MB / 453.1 MB, free: 9.965 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 2.284e-06/0.351, allocations: 1.312 kB / 453.1 MB, free: 9.965 MB / 330.7 MB Notification: Performance of matching and sorting (n=51): time 0.01197/0.363, allocations: 5.126 MB / 458.2 MB, free: 4.684 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.326e-05/0.3631, allocations: 85.11 kB / 458.3 MB, free: 4.582 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006969/0.3638, allocations: 0.5345 MB / 458.8 MB, free: 4.043 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001194/0.3639, allocations: 49.7 kB / 458.9 MB, free: 3.988 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002369/0.3642, allocations: 288.4 kB / 459.2 MB, free: 3.699 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001711/0.3643, allocations: 173.8 kB / 459.3 MB, free: 3.527 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.703e-05/0.3644, allocations: 12 kB / 459.3 MB, free: 3.516 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.3646, allocations: 378.8 kB / 459.7 MB, free: 3.137 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001142/0.3657, allocations: 0.5947 MB / 460.3 MB, free: 2.543 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001169/0.3669, allocations: 0.6785 MB / 461 MB, free: 1.832 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.368, allocations: 0.5126 MB / 461.5 MB, free: 1.324 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.368, allocations: 4 kB / 461.5 MB, free: 1.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003728/0.3717, allocations: 1.848 MB / 463.4 MB, free: 15.46 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.3718, allocations: 4 kB / 463.4 MB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.275e-05/0.3718, allocations: 15.38 kB / 463.4 MB, free: 15.44 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005166/0.377, allocations: 4.196 MB / 467.6 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005489/0.3775, allocations: 119.9 kB / 467.7 MB, free: 11.11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007143/0.3847, allocations: 5.423 MB / 473.1 MB, free: 5.398 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001411/0.3861, allocations: 296.2 kB / 473.4 MB, free: 5.113 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001415/0.3863, allocations: 104 kB / 473.5 MB, free: 5.012 MB / 346.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): 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.0005385/0.3868, allocations: 256 kB / 473.8 MB, free: 4.75 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001615/0.387, allocations: 71.16 kB / 473.8 MB, free: 4.68 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003236/0.3902, allocations: 1.571 MB / 475.4 MB, free: 3.086 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.325e-06/0.3902, allocations: 11.89 kB / 475.4 MB, free: 3.074 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.3903, allocations: 3.984 kB / 475.4 MB, free: 3.07 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.3903, allocations: 0 / 475.4 MB, free: 3.07 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005135/0.3954, allocations: 2.607 MB / 478 MB, free: 400 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.3954, allocations: 4.031 kB / 478 MB, free: 396 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004765/0.3959, allocations: 91.94 kB / 478.1 MB, free: 304 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005149/0.4011, allocations: 4.209 MB / 482.3 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001011/0.4012, allocations: 31.97 kB / 482.3 MB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006566/0.4078, allocations: 5.152 MB / 487.5 MB, free: 6.594 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/0.4078, allocations: 7.984 kB / 487.5 MB, free: 6.586 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005066/0.4129, allocations: 2.498 MB / 490 MB, free: 4.027 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007131/0.4136, allocations: 308.2 kB / 490.3 MB, free: 3.707 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001523/0.4138, allocations: 20 kB / 490.3 MB, free: 3.688 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001412/0.4152, allocations: 303.7 kB / 490.6 MB, free: 3.391 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001416/0.4166, allocations: 0.6626 MB / 491.3 MB, free: 2.727 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00016/0.4168, allocations: 95.95 kB / 491.4 MB, free: 2.633 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007148/0.4175, allocations: 0.5168 MB / 491.9 MB, free: 2.125 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4175, allocations: 0 / 491.9 MB, free: 2.125 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009408/0.4185, allocations: 239.9 kB / 492.1 MB, free: 1.891 MB / 362.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) * Number of clocked states: 0 () * 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.0003489/0.4188, allocations: 151.1 kB / 492.3 MB, free: 1.734 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002966/0.4218, allocations: 1.529 MB / 493.8 MB, free: 180 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.4218, allocations: 0 / 493.8 MB, free: 180 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001759/0.4236, allocations: 0.9382 MB / 494.7 MB, free: 15.21 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005252/0.4241, allocations: 63.72 kB / 494.8 MB, free: 15.15 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004379/0.4285, allocations: 2.205 MB / 497 MB, free: 12.92 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005557/0.4291, allocations: 0.9339 MB / 497.9 MB, free: 11.96 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002641/0.4294, allocations: 39.28 kB / 498 MB, free: 11.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001228/0.4295, allocations: 35.42 kB / 498 MB, free: 11.89 MB / 378.7 MB Notification: Performance of SimCode: time 9.72e-07/0.4295, allocations: 0 / 498 MB, free: 11.89 MB / 378.7 MB Notification: Performance of Templates: time 0.03026/0.4598, allocations: 20.66 MB / 0.5065 GB, free: 7.18 MB / 394.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)