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") [: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.1+maint.om/package.mo): time 0.003152/0.003151, allocations: 178.4 kB / 7.451 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.299/1.299, allocations: 170.6 MB / 178.4 MB, free: 15.47 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.001617/0.001617, allocations: 107.8 kB / 217.7 MB, free: 8.234 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.494e-06/7.514e-06, allocations: 4 kB / 261.7 MB, free: 26.68 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08164/0.08167, allocations: 38.75 MB / 300.5 MB, free: 3.922 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2673/0.349, allocations: 70.21 MB / 370.7 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002998/0.3494, allocations: 68.33 kB / 370.8 MB, free: 14.36 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.04426/0.3936, allocations: 13.26 MB / 384 MB, free: 2.711 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.368e-05/0.3937, allocations: 11.98 kB / 384 MB, free: 2.699 MB / 266.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.003788/0.3975, allocations: 1.141 MB / 385.2 MB, free: 1.555 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.3976, allocations: 8.031 kB / 385.2 MB, free: 1.547 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005069/0.3981, allocations: 82.97 kB / 385.3 MB, free: 1.465 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00138/0.3995, allocations: 0.5798 MB / 385.8 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.857e-05/0.3996, allocations: 12 kB / 385.9 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002849/0.3999, allocations: 31.22 kB / 385.9 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003455/0.4034, allocations: 2.133 MB / 388 MB, free: 15.15 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002373/0.4058, allocations: 1.373 MB / 389.4 MB, free: 14.02 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.127e-05/0.4058, allocations: 4 kB / 389.4 MB, free: 14.02 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001605/0.406, allocations: 7.984 kB / 389.4 MB, free: 14.01 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.886e-05/0.406, allocations: 8 kB / 389.4 MB, free: 14 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007533/0.4135, allocations: 3.092 MB / 392.5 MB, free: 11.34 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001331/0.4149, allocations: 0.9192 MB / 393.4 MB, free: 10.61 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001157/0.4161, allocations: 0.8429 MB / 394.3 MB, free: 9.949 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.374e-05/0.4162, allocations: 4.5 kB / 394.3 MB, free: 9.945 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001694/0.4179, allocations: 1.108 MB / 395.4 MB, free: 9.031 MB / 282.7 MB Notification: Performance of pre-optimization done (n=47): time 4.339e-06/0.418, allocations: 0 / 395.4 MB, free: 9.031 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.01039/0.4283, allocations: 5.553 MB / 400.9 MB, free: 4.191 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.494e-05/0.4285, allocations: 84.42 kB / 401 MB, free: 4.094 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001414/0.4299, allocations: 0.7536 MB / 401.8 MB, free: 3.516 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002336/0.4301, allocations: 37.5 kB / 401.8 MB, free: 3.477 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000201/0.4303, allocations: 210.6 kB / 402 MB, free: 3.289 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002809/0.4306, allocations: 156.3 kB / 402.2 MB, free: 3.16 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001228/0.4308, allocations: 7.75 kB / 402.2 MB, free: 3.156 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002429/0.431, allocations: 385.8 kB / 402.5 MB, free: 2.797 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001462/0.4325, allocations: 1.02 MB / 403.6 MB, free: 2 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001547/0.4341, allocations: 1.112 MB / 404.7 MB, free: 1.09 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001482/0.4355, allocations: 0.9491 MB / 405.6 MB, free: 320 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.4356, allocations: 3.938 kB / 405.6 MB, free: 316 kB / 282.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.005311/0.4409, allocations: 3.223 MB / 408.9 MB, free: 13.62 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.532e-05/0.4409, allocations: 4 kB / 408.9 MB, free: 13.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.177e-05/0.441, allocations: 7.984 kB / 408.9 MB, free: 13.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01339/0.4544, allocations: 10.92 MB / 419.8 MB, free: 3.227 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008133/0.4552, allocations: 136 kB / 419.9 MB, free: 3.098 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008879/0.4641, allocations: 6.671 MB / 426.6 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001887/0.466, allocations: 331.7 kB / 426.9 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003373/0.4664, allocations: 108 kB / 427 MB, free: 11.8 MB / 314.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): 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.0006019/0.467, allocations: 131.5 kB / 427.2 MB, free: 11.67 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003339/0.4674, allocations: 71.16 kB / 427.2 MB, free: 11.6 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002838/0.4677, allocations: 94.17 kB / 427.3 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.4677, allocations: 4 kB / 427.3 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/0.4677, allocations: 4 kB / 427.3 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.4677, allocations: 3.984 kB / 427.3 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008427/0.4762, allocations: 4.383 MB / 431.7 MB, free: 7.055 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.4762, allocations: 0 / 431.7 MB, free: 7.055 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005998/0.4768, allocations: 111.9 kB / 431.8 MB, free: 6.945 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01354/0.4904, allocations: 10.82 MB / 442.6 MB, free: 12.09 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002817/0.4907, allocations: 35.97 kB / 442.7 MB, free: 12.06 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008888/0.4996, allocations: 6.601 MB / 449.3 MB, free: 5.188 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.74e-06/0.4997, allocations: 0 / 449.3 MB, free: 5.188 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006902/0.5066, allocations: 4.219 MB / 453.5 MB, free: 0.9141 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009805/0.5076, allocations: 412 kB / 453.9 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003058/0.5079, allocations: 15.94 kB / 453.9 MB, free: 488 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001845/0.5098, allocations: 339.7 kB / 454.2 MB, free: 148 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005357/0.5103, allocations: 219.6 kB / 454.5 MB, free: 15.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001903/0.5105, allocations: 91.97 kB / 454.6 MB, free: 15.84 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0009108/0.5115, allocations: 0.5928 MB / 455.1 MB, free: 15.25 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009316/0.5124, allocations: 180 kB / 455.3 MB, free: 15.07 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.0003436/0.5128, allocations: 147.1 kB / 455.5 MB, free: 14.92 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002129/0.5149, allocations: 1.596 MB / 457.1 MB, free: 13.3 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.5149, allocations: 4 kB / 457.1 MB, free: 13.3 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001266/0.5162, allocations: 0.8748 MB / 457.9 MB, free: 12.41 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006041/0.5168, allocations: 50.97 kB / 458 MB, free: 12.36 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004331/0.5212, allocations: 1.686 MB / 459.7 MB, free: 10.63 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008508/0.522, allocations: 0.9746 MB / 460.6 MB, free: 9.637 MB / 346.7 MB Notification: Performance of SimCode: time 1.242e-06/0.522, allocations: 4 kB / 460.7 MB, free: 9.633 MB / 346.7 MB Notification: Performance of Templates: time 0.1828/0.7049, allocations: 13.88 MB / 474.5 MB, free: 137.3 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)