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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 107.2 kB / 16.92 MB, free: 5.77 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 191.5 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.544/1.544, allocations: 205.1 MB / 223.7 MB, free: 12.34 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 51.92 kB / 280 MB, free: 3.195 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1231, allocations: 46.64 MB / 326.6 MB, free: 4.488 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.005086/0.1282, allocations: 2.964 MB / 329.6 MB, free: 1.488 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002252/0.1305, allocations: 1.209 MB / 330.8 MB, free: 284 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002028/0.1307, allocations: 7.938 kB / 330.8 MB, free: 276 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005021/0.1313, allocations: 83.28 kB / 330.9 MB, free: 192 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002238/0.1315, allocations: 114.9 kB / 331 MB, free: 76 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008805/0.1324, allocations: 411.3 kB / 331.4 MB, free: 15.67 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006672/0.1331, allocations: 0.7919 MB / 332.2 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002168/0.1333, allocations: 101.5 kB / 332.3 MB, free: 14.78 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004258/0.1337, allocations: 363 kB / 332.6 MB, free: 14.42 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001283/0.135, allocations: 1.335 MB / 334 MB, free: 13.08 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001173/0.1351, allocations: 68 kB / 334 MB, free: 13.02 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002176/0.1354, allocations: 116 kB / 334.2 MB, free: 12.9 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002238/0.1356, allocations: 227.8 kB / 334.4 MB, free: 12.68 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003724/0.136, allocations: 346.1 kB / 334.7 MB, free: 12.34 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008307/0.1368, allocations: 0.8644 MB / 335.6 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1368, allocations: 0 / 335.6 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1368, allocations: 0 / 335.6 MB, free: 11.47 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.036e-05/0.1369, allocations: 0 / 335.6 MB, free: 11.47 MB / 286.1 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.003754/0.1406, allocations: 1.332 MB / 336.9 MB, free: 10.09 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.1407, allocations: 8.031 kB / 336.9 MB, free: 10.08 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001541/0.1408, allocations: 76 kB / 337 MB, free: 10.01 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000551/0.1414, allocations: 427.5 kB / 337.4 MB, free: 9.551 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.697e-05/0.1414, allocations: 29.38 kB / 337.4 MB, free: 9.52 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.511e-05/0.1415, allocations: 44.36 kB / 337.5 MB, free: 9.477 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001787/0.1433, allocations: 1.154 MB / 338.6 MB, free: 8.309 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.647e-05/0.1434, allocations: 4 kB / 338.6 MB, free: 8.305 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.477e-05/0.1435, allocations: 16 kB / 338.7 MB, free: 8.289 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.1435, allocations: 12 kB / 338.7 MB, free: 8.277 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002578/0.1461, allocations: 1.744 MB / 340.4 MB, free: 6.535 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004162/0.1502, allocations: 2.486 MB / 342.9 MB, free: 3.969 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001659/0.1519, allocations: 0.9146 MB / 343.8 MB, free: 3.035 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001297/0.1532, allocations: 0.7123 MB / 344.5 MB, free: 2.316 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.618e-05/0.1533, allocations: 8 kB / 344.5 MB, free: 2.309 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001683/0.155, allocations: 0.9044 MB / 345.4 MB, free: 1.383 MB / 286.1 MB Notification: Performance of pre-optimization done (n=47): time 2.154e-06/0.155, allocations: 0 / 345.4 MB, free: 1.383 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.01118/0.1662, allocations: 5.777 MB / 351.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.313e-05/0.1663, allocations: 81.11 kB / 351.3 MB, free: 11.35 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001121/0.1675, allocations: 0.9257 MB / 352.2 MB, free: 10.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.765e-05/0.1676, allocations: 45.69 kB / 352.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002149/0.1678, allocations: 300.3 kB / 352.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002055/0.168, allocations: 161.9 kB / 352.7 MB, free: 9.906 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002323/0.1682, allocations: 126.2 kB / 352.8 MB, free: 9.773 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002354/0.1685, allocations: 378.8 kB / 353.2 MB, free: 9.395 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001208/0.1697, allocations: 0.8447 MB / 354.1 MB, free: 8.551 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001256/0.171, allocations: 0.9402 MB / 355 MB, free: 7.578 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002097/0.1731, allocations: 1.461 MB / 356.5 MB, free: 6.086 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1731, allocations: 0 / 356.5 MB, free: 6.086 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003982/0.1771, allocations: 2.486 MB / 358.9 MB, free: 3.582 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.1771, allocations: 8.031 kB / 359 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.1771, allocations: 4 kB / 359 MB, free: 3.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002073/0.1792, allocations: 1.888 MB / 360.8 MB, free: 1.672 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005516/0.1798, allocations: 115.8 kB / 361 MB, free: 1.559 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008947/0.1887, allocations: 6.706 MB / 367.7 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001597/0.1904, allocations: 243.5 kB / 367.9 MB, free: 10.31 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.571e-05/0.1904, allocations: 23.98 kB / 367.9 MB, free: 10.29 MB / 318.1 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,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,stop1.stopped,stop1.mode,$PRE.stop1.mode,stop1.locked,stop1.startBackward,$PRE.stop1.startBackward,stop1.startForward,$PRE.stop1.startForward,stop1.free,$whenCondition2,stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0005614/0.191, allocations: 256.1 kB / 368.2 MB, free: 10.03 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/0.1912, allocations: 67.25 kB / 368.2 MB, free: 9.961 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002016/0.1914, allocations: 102.2 kB / 368.3 MB, free: 9.855 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.1914, allocations: 4 kB / 368.3 MB, free: 9.852 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/0.1914, allocations: 0 / 368.3 MB, free: 9.852 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.1914, allocations: 11.98 kB / 368.4 MB, free: 9.84 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004077/0.1955, allocations: 3.094 MB / 371.4 MB, free: 6.676 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.1955, allocations: 0 / 371.4 MB, free: 6.676 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000488/0.196, allocations: 83.94 kB / 371.5 MB, free: 6.594 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002032/0.1981, allocations: 1.869 MB / 373.4 MB, free: 4.715 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.156e-05/0.1981, allocations: 27.95 kB / 373.4 MB, free: 4.688 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2275/0.4256, allocations: 6.319 MB / 379.7 MB, free: 54.71 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/0.4257, allocations: 2.312 kB / 379.7 MB, free: 54.71 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005781/0.4315, allocations: 3.224 MB / 383 MB, free: 54.52 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003917/0.4319, allocations: 214.7 kB / 383.2 MB, free: 54.42 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001147/0.432, allocations: 21.92 kB / 383.2 MB, free: 54.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001833/0.4338, allocations: 268.1 kB / 383.5 MB, free: 54.4 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001529/0.4354, allocations: 0.5623 MB / 384 MB, free: 54.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.553e-05/0.4355, allocations: 29.77 kB / 384.1 MB, free: 54.26 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008619/0.4364, allocations: 0.6791 MB / 384.7 MB, free: 54.02 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4364, allocations: 0 / 384.7 MB, free: 54.02 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009117/0.4373, allocations: 184.8 kB / 384.9 MB, free: 54 MB / 318.1 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,5), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002898/0.4376, allocations: 160.8 kB / 385.1 MB, free: 53.89 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003435/0.441, allocations: 1.94 MB / 387 MB, free: 53.32 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.441, allocations: 1.094 kB / 387 MB, free: 53.32 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001783/0.4428, allocations: 1.081 MB / 388.1 MB, free: 52.91 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00062/0.4435, allocations: 76.97 kB / 388.2 MB, free: 52.87 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00441/0.4479, allocations: 1.976 MB / 390.1 MB, free: 52.08 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00055/0.4484, allocations: 0.9254 MB / 391.1 MB, free: 51.36 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002309/0.4487, allocations: 39.14 kB / 391.1 MB, free: 51.35 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00013/0.4488, allocations: 39.88 kB / 391.1 MB, free: 51.34 MB / 318.1 MB Notification: Performance of SimCode: time 3.2e-07/0.4488, allocations: 0 / 391.1 MB, free: 51.34 MB / 318.1 MB Notification: Performance of Templates: time 0.02778/0.4766, allocations: 24.27 MB / 415.4 MB, free: 29.23 MB / 318.1 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)