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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001062/0.001062, allocations: 190.2 kB / 8.136 MB, free: 2.215 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.12/1.12, allocations: 194.2 MB / 202.8 MB, free: 8.754 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.001764/0.001764, allocations: 118.6 kB / 247.7 MB, free: 6.293 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 8.055e-06/8.175e-06, allocations: 4 kB / 297.6 MB, free: 8.016 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06866/0.06869, allocations: 44.5 MB / 342.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1929/0.2616, allocations: 75.51 MB / 417.6 MB, free: 19.64 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001755/0.2618, allocations: 74.52 kB / 417.6 MB, free: 19.6 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.03904/0.3009, allocations: 13.51 MB / 431.1 MB, free: 7.883 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.871e-05/0.301, allocations: 15.94 kB / 431.2 MB, free: 7.867 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.002968/0.3039, allocations: 1.139 MB / 432.3 MB, free: 6.727 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/0.304, allocations: 12.03 kB / 432.3 MB, free: 6.715 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002182/0.3042, allocations: 75.06 kB / 432.4 MB, free: 6.641 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007061/0.3049, allocations: 497.4 kB / 432.9 MB, free: 6.164 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.323e-05/0.305, allocations: 12 kB / 432.9 MB, free: 6.152 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001328/0.3051, allocations: 24 kB / 432.9 MB, free: 6.129 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001665/0.3068, allocations: 1.075 MB / 434 MB, free: 5.34 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/0.3081, allocations: 0.8533 MB / 434.8 MB, free: 4.672 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.43e-05/0.3081, allocations: 4 kB / 434.8 MB, free: 4.668 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001058/0.3082, allocations: 3.906 kB / 434.8 MB, free: 4.664 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.3082, allocations: 8 kB / 434.8 MB, free: 4.656 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005082/0.3133, allocations: 2.437 MB / 437.3 MB, free: 2.566 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007935/0.3141, allocations: 0.5957 MB / 437.9 MB, free: 2.129 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007056/0.3148, allocations: 0.5107 MB / 438.4 MB, free: 1.766 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.872e-05/0.3149, allocations: 11.97 kB / 438.4 MB, free: 1.754 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009481/0.3159, allocations: 0.761 MB / 439.2 MB, free: 1.152 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.805e-06/0.3159, allocations: 0 / 439.2 MB, free: 1.152 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.006514/0.3224, allocations: 3.437 MB / 442.6 MB, free: 14.21 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.802e-05/0.3225, allocations: 81.11 kB / 442.7 MB, free: 14.12 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001028/0.3235, allocations: 0.4985 MB / 443.2 MB, free: 13.7 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002341/0.3238, allocations: 43.69 kB / 443.2 MB, free: 13.66 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002116/0.324, allocations: 201.7 kB / 443.4 MB, free: 13.48 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003572/0.3244, allocations: 160.4 kB / 443.6 MB, free: 13.35 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001522/0.3245, allocations: 2.625 kB / 443.6 MB, free: 13.35 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002582/0.3248, allocations: 380.9 kB / 443.9 MB, free: 13 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001735/0.3266, allocations: 0.5295 MB / 444.5 MB, free: 12.63 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001873/0.3285, allocations: 0.6201 MB / 445.1 MB, free: 12.15 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001651/0.3301, allocations: 461.5 kB / 445.5 MB, free: 11.82 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.3302, allocations: 0 / 445.5 MB, free: 11.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.006741/0.3369, allocations: 1.719 MB / 447.3 MB, free: 10.46 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.337, allocations: 4 kB / 447.3 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.944e-05/0.337, allocations: 8 kB / 447.3 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00928/0.3463, allocations: 3.964 MB / 451.2 MB, free: 6.828 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009567/0.3473, allocations: 131.5 kB / 451.4 MB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005909/0.3533, allocations: 4.891 MB / 456.3 MB, free: 2.258 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001888/0.3552, allocations: 327.7 kB / 456.6 MB, free: 1.938 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001975/0.3554, allocations: 103.4 kB / 456.7 MB, free: 1.844 MB / 330.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.0003717/0.3558, allocations: 138.4 kB / 456.8 MB, free: 1.707 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001715/0.356, allocations: 71.16 kB / 456.9 MB, free: 1.637 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003422/0.3594, allocations: 1.613 MB / 458.5 MB, free: 324 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.3594, allocations: 8 kB / 458.5 MB, free: 316 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.3594, allocations: 0 / 458.5 MB, free: 316 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.325e-06/0.3594, allocations: 3.984 kB / 458.5 MB, free: 312 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004968/0.3644, allocations: 2.542 MB / 461.1 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.3644, allocations: 4.969 kB / 461.1 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000586/0.365, allocations: 98.56 kB / 461.2 MB, free: 14.13 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005242/0.3703, allocations: 3.991 MB / 465.1 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001141/0.3704, allocations: 36.39 kB / 465.2 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005489/0.3759, allocations: 4.811 MB / 470 MB, free: 6.027 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.3759, allocations: 0 / 470 MB, free: 6.027 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004377/0.3803, allocations: 2.336 MB / 472.3 MB, free: 3.691 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005799/0.3809, allocations: 308 kB / 472.6 MB, free: 3.371 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002071/0.3811, allocations: 12 kB / 472.6 MB, free: 3.359 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001802/0.3829, allocations: 343.7 kB / 473 MB, free: 3.023 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004867/0.3834, allocations: 224.6 kB / 473.2 MB, free: 2.805 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001636/0.3836, allocations: 91.97 kB / 473.3 MB, free: 2.715 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0005712/0.3842, allocations: 487.1 kB / 473.8 MB, free: 2.242 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007938/0.385, allocations: 212 kB / 474 MB, free: 2.035 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.0002958/0.3853, allocations: 143.1 kB / 474.1 MB, free: 1.887 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00213/0.3874, allocations: 1.337 MB / 475.4 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.3875, allocations: 4 kB / 475.5 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001328/0.3888, allocations: 0.7711 MB / 476.2 MB, free: 15.73 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004733/0.3893, allocations: 54.09 kB / 476.3 MB, free: 15.68 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003842/0.3931, allocations: 1.565 MB / 477.8 MB, free: 14.08 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006504/0.3938, allocations: 0.9629 MB / 478.8 MB, free: 13.09 MB / 362.7 MB Notification: Performance of SimCode: time 4.51e-07/0.3938, allocations: 0 / 478.8 MB, free: 13.09 MB / 362.7 MB Notification: Performance of Templates: time 0.02758/0.4214, allocations: 18.02 MB / 496.8 MB, free: 11.03 MB / 378.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)