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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001506/0.001506, allocations: 197.3 kB / 16.14 MB, free: 6.664 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.567/1.567, allocations: 205.1 MB / 222 MB, free: 4.75 MB / 174.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.001492/0.001492, allocations: 51.91 kB / 278 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3324, allocations: 46.62 MB / 324.7 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.005485/0.338, allocations: 3.01 MB / 327.7 MB, free: 15.55 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003107/0.3411, allocations: 1.206 MB / 328.9 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004484/0.3416, allocations: 4.281 kB / 328.9 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000486/0.3422, allocations: 70.41 kB / 329 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002893/0.3425, allocations: 102.4 kB / 329.1 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00109/0.3436, allocations: 366.5 kB / 329.4 MB, free: 14.14 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.00086/0.3445, allocations: 0.7514 MB / 330.2 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002507/0.3447, allocations: 81.69 kB / 330.2 MB, free: 13.67 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006365/0.3454, allocations: 341.2 kB / 330.6 MB, free: 13.48 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001769/0.3471, allocations: 1.326 MB / 331.9 MB, free: 12.89 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001463/0.3473, allocations: 38.16 kB / 331.9 MB, free: 12.87 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002781/0.3476, allocations: 87.89 kB / 332 MB, free: 12.78 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002344/0.3478, allocations: 204.2 kB / 332.2 MB, free: 12.58 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003401/0.3482, allocations: 322.1 kB / 332.5 MB, free: 12.27 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008276/0.349, allocations: 0.8253 MB / 333.4 MB, free: 11.44 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.349, allocations: 0 / 333.4 MB, free: 11.44 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.349, allocations: 0 / 333.4 MB, free: 11.44 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.225e-05/0.3491, allocations: 0 / 333.4 MB, free: 11.44 MB / 270.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.003626/0.3527, allocations: 1.316 MB / 334.7 MB, free: 10.07 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.3527, allocations: 12.03 kB / 334.7 MB, free: 10.06 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001574/0.3529, allocations: 76 kB / 334.8 MB, free: 9.984 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005189/0.3534, allocations: 427.5 kB / 335.2 MB, free: 9.523 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.497e-05/0.3535, allocations: 33.38 kB / 335.2 MB, free: 9.488 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.662e-05/0.3536, allocations: 36.36 kB / 335.3 MB, free: 9.453 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001885/0.3555, allocations: 1.161 MB / 336.4 MB, free: 8.281 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.178e-05/0.3555, allocations: 3.938 kB / 336.4 MB, free: 8.277 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.235e-05/0.3556, allocations: 16 kB / 336.4 MB, free: 8.262 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.3556, allocations: 8 kB / 336.4 MB, free: 8.254 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002633/0.3583, allocations: 1.744 MB / 338.2 MB, free: 6.512 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004461/0.3627, allocations: 2.478 MB / 340.7 MB, free: 3.949 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002341/0.3651, allocations: 0.9147 MB / 341.6 MB, free: 3.016 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00155/0.3667, allocations: 0.7201 MB / 342.3 MB, free: 2.289 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.098e-05/0.3668, allocations: 4 kB / 342.3 MB, free: 2.285 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002129/0.369, allocations: 0.9006 MB / 343.2 MB, free: 1.367 MB / 270.1 MB Notification: Performance of pre-optimization done (n=47): time 4.168e-06/0.369, allocations: 0 / 343.2 MB, free: 1.367 MB / 270.1 MB Notification: Performance of matching and sorting (n=49): time 0.01147/0.3805, allocations: 5.792 MB / 349 MB, free: 11.41 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.775e-05/0.3806, allocations: 85.05 kB / 349.1 MB, free: 11.31 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001479/0.3821, allocations: 0.9141 MB / 350 MB, free: 10.39 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001324/0.3823, allocations: 49.69 kB / 350 MB, free: 10.34 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002623/0.3826, allocations: 296.3 kB / 350.3 MB, free: 10.04 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002101/0.3828, allocations: 169.9 kB / 350.5 MB, free: 9.875 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003091/0.3831, allocations: 122.2 kB / 350.6 MB, free: 9.746 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000223/0.3833, allocations: 378.8 kB / 351 MB, free: 9.367 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001383/0.3847, allocations: 0.8447 MB / 351.8 MB, free: 8.523 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001386/0.3861, allocations: 0.944 MB / 352.8 MB, free: 7.547 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00223/0.3884, allocations: 1.457 MB / 354.2 MB, free: 6.059 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.027e-05/0.3884, allocations: 4 kB / 354.2 MB, free: 6.055 MB / 286.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003969/0.3924, allocations: 2.482 MB / 356.7 MB, free: 3.555 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.736e-05/0.3924, allocations: 14.91 kB / 356.7 MB, free: 3.543 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/0.3925, allocations: 0 / 356.7 MB, free: 3.543 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002187/0.3947, allocations: 1.896 MB / 358.6 MB, free: 1.637 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00067/0.3953, allocations: 115.8 kB / 358.7 MB, free: 1.523 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008055/0.4034, allocations: 6.361 MB / 365.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001528/0.405, allocations: 219.8 kB / 365.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001494/0.4052, allocations: 31.98 kB / 365.3 MB, free: 10.62 MB / 302.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.0006645/0.4058, allocations: 252.5 kB / 365.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002379/0.4061, allocations: 71.16 kB / 365.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002353/0.4063, allocations: 110.1 kB / 365.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.4063, allocations: 7.984 kB / 365.8 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.4064, allocations: 0 / 365.8 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.4064, allocations: 0 / 365.8 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004713/0.4111, allocations: 3.084 MB / 368.9 MB, free: 7.016 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.732e-06/0.4111, allocations: 4 kB / 368.9 MB, free: 7.012 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005187/0.4116, allocations: 91.97 kB / 369 MB, free: 6.922 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001998/0.4137, allocations: 1.873 MB / 370.8 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.589e-05/0.4137, allocations: 23.97 kB / 370.9 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008171/0.4219, allocations: 6.086 MB / 376.9 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.422, allocations: 4.031 kB / 376.9 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005646/0.4276, allocations: 3.224 MB / 380.2 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004222/0.4281, allocations: 212.2 kB / 380.4 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001517/0.4283, allocations: 23.94 kB / 380.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001685/0.43, allocations: 267.6 kB / 380.7 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001518/0.4315, allocations: 0.5498 MB / 381.2 MB, free: 10.31 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001132/0.4316, allocations: 27.97 kB / 381.2 MB, free: 10.29 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008438/0.4325, allocations: 0.6786 MB / 381.9 MB, free: 9.609 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4325, allocations: 4 kB / 381.9 MB, free: 9.605 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001078/0.4336, allocations: 184 kB / 382.1 MB, free: 9.426 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.0004213/0.434, allocations: 163.1 kB / 382.3 MB, free: 9.258 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00321/0.4372, allocations: 1.913 MB / 384.2 MB, free: 7.312 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.4372, allocations: 0 / 384.2 MB, free: 7.312 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001969/0.4392, allocations: 1.084 MB / 385.3 MB, free: 6.203 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007522/0.44, allocations: 71.05 kB / 385.3 MB, free: 6.137 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004682/0.4447, allocations: 2.178 MB / 387.5 MB, free: 3.922 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007035/0.4454, allocations: 0.9269 MB / 388.4 MB, free: 2.973 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003112/0.4457, allocations: 43.27 kB / 388.5 MB, free: 2.926 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00015/0.4459, allocations: 39.41 kB / 388.5 MB, free: 2.887 MB / 318.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4459, allocations: 0 / 388.5 MB, free: 2.887 MB / 318.1 MB Notification: Performance of Templates: time 0.03549/0.4814, allocations: 21.98 MB / 410.5 MB, free: 12.88 MB / 350.1 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)