Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.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.001007/0.001007, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001347/0.001347, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.443/1.443, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.0004213/0.0004213, allocations: 12 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2348/0.2352, allocations: 47.58 MB / 326.4 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002565/0.2379, allocations: 2.407 MB / 328.9 MB, free: 15.52 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00198/0.2399, allocations: 1.15 MB / 330 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001536/0.24, allocations: 4.438 kB / 330 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002571/0.2403, allocations: 57.7 kB / 330.1 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002372/0.2405, allocations: 144.7 kB / 330.2 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006813/0.2412, allocations: 325 kB / 330.5 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005324/0.2418, allocations: 461.5 kB / 331 MB, free: 13.88 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001754/0.242, allocations: 85.92 kB / 331.1 MB, free: 13.82 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003608/0.2423, allocations: 313.8 kB / 331.4 MB, free: 13.64 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001352/0.2437, allocations: 1.41 MB / 332.8 MB, free: 13.13 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.673e-05/0.2438, allocations: 38.78 kB / 332.8 MB, free: 13.12 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000191/0.244, allocations: 72.56 kB / 332.9 MB, free: 13.07 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000186/0.2442, allocations: 203.3 kB / 333.1 MB, free: 12.87 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001173/0.2443, allocations: 129.4 kB / 333.2 MB, free: 12.74 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005124/0.2448, allocations: 0.5936 MB / 333.8 MB, free: 12.14 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.754e-06/0.2449, allocations: 3.938 kB / 333.8 MB, free: 12.14 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.148e-06/0.2449, allocations: 3.984 kB / 333.8 MB, free: 12.14 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.2449, allocations: 0 / 333.8 MB, free: 12.14 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.003245/0.2481, allocations: 1.313 MB / 335.1 MB, free: 10.77 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.657e-05/0.2482, allocations: 12.03 kB / 335.1 MB, free: 10.76 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001243/0.2483, allocations: 71.16 kB / 335.2 MB, free: 10.69 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004753/0.2488, allocations: 402.7 kB / 335.6 MB, free: 10.25 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.646e-05/0.2488, allocations: 25 kB / 335.6 MB, free: 10.23 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.641e-05/0.2489, allocations: 36 kB / 335.7 MB, free: 10.19 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001629/0.2505, allocations: 1.165 MB / 336.8 MB, free: 9.016 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/0.2506, allocations: 7.906 kB / 336.8 MB, free: 9.008 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.78e-05/0.2506, allocations: 15.98 kB / 336.8 MB, free: 8.992 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.2507, allocations: 19.94 kB / 336.9 MB, free: 8.973 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002478/0.2531, allocations: 1.771 MB / 338.6 MB, free: 7.203 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003969/0.2571, allocations: 2.557 MB / 341.2 MB, free: 4.566 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001589/0.2587, allocations: 0.9382 MB / 342.1 MB, free: 3.609 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.639e-05/0.2588, allocations: 7.984 kB / 342.1 MB, free: 3.602 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001373/0.2602, allocations: 0.9123 MB / 343 MB, free: 2.668 MB / 270.1 MB Notification: Performance of pre-optimization done (n=47): time 2.335e-06/0.2602, allocations: 0 / 343 MB, free: 2.668 MB / 270.1 MB Notification: Performance of matching and sorting (n=49): time 0.01083/0.271, allocations: 6.028 MB / 349.1 MB, free: 12.48 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.196e-05/0.2711, allocations: 85.05 kB / 349.2 MB, free: 12.38 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001132/0.2723, allocations: 0.9103 MB / 350.1 MB, free: 11.46 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.645e-05/0.2724, allocations: 45.7 kB / 350.1 MB, free: 11.41 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002201/0.2726, allocations: 296.3 kB / 350.4 MB, free: 11.12 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001549/0.2727, allocations: 165.9 kB / 350.6 MB, free: 10.95 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.489e-05/0.2728, allocations: 16 kB / 350.6 MB, free: 10.94 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.273, allocations: 378.8 kB / 351 MB, free: 10.56 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001212/0.2742, allocations: 0.8564 MB / 351.8 MB, free: 9.699 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001238/0.2754, allocations: 0.948 MB / 352.8 MB, free: 8.723 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001085/0.2765, allocations: 0.7847 MB / 353.5 MB, free: 7.938 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.2765, allocations: 0 / 353.5 MB, free: 7.938 MB / 286.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003554/0.2801, allocations: 2.49 MB / 356 MB, free: 5.43 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.2801, allocations: 7.938 kB / 356 MB, free: 5.422 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.2802, allocations: 4 kB / 356 MB, free: 5.418 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001992/0.2822, allocations: 1.896 MB / 357.9 MB, free: 3.512 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005113/0.2827, allocations: 123.8 kB / 358.1 MB, free: 3.391 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008104/0.2908, allocations: 6.471 MB / 364.5 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001697/0.2925, allocations: 307.7 kB / 364.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.661e-05/0.2927, allocations: 20 kB / 364.9 MB, free: 12.3 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,$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): 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.0005844/0.2932, allocations: 255.9 kB / 365.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001389/0.2934, allocations: 71.16 kB / 365.2 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002102/0.2936, allocations: 110.2 kB / 365.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.2936, allocations: 7.953 kB / 365.3 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.247e-06/0.2936, allocations: 0 / 365.3 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.2937, allocations: 0 / 365.3 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004333/0.298, allocations: 3.131 MB / 368.4 MB, free: 8.645 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/0.298, allocations: 8.047 kB / 368.4 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000485/0.2985, allocations: 87.88 kB / 368.5 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002007/0.3006, allocations: 1.869 MB / 370.4 MB, free: 6.672 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.695e-05/0.3006, allocations: 19.97 kB / 370.4 MB, free: 6.652 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007211/0.3078, allocations: 6.196 MB / 376.6 MB, free: 168 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.3079, allocations: 0 / 376.6 MB, free: 168 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004905/0.3128, allocations: 3.315 MB / 379.9 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003852/0.3132, allocations: 200.3 kB / 380.1 MB, free: 12.59 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001098/0.3133, allocations: 24 kB / 380.1 MB, free: 12.56 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00163/0.315, allocations: 347.6 kB / 380.5 MB, free: 12.22 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00136/0.3163, allocations: 0.6432 MB / 381.1 MB, free: 11.58 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.052e-05/0.3164, allocations: 31.95 kB / 381.1 MB, free: 11.55 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007216/0.3172, allocations: 0.6709 MB / 381.8 MB, free: 10.88 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3172, allocations: 3.938 kB / 381.8 MB, free: 10.88 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008286/0.318, allocations: 192 kB / 382 MB, free: 10.69 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 (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.0003019/0.3183, allocations: 151.2 kB / 382.2 MB, free: 10.53 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002933/0.3213, allocations: 1.956 MB / 384.1 MB, free: 8.543 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.3213, allocations: 0 / 384.1 MB, free: 8.543 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001633/0.3229, allocations: 1.091 MB / 385.2 MB, free: 7.426 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004699/0.3234, allocations: 62.91 kB / 385.3 MB, free: 7.367 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004143/0.3275, allocations: 2.293 MB / 387.6 MB, free: 5.039 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005186/0.3281, allocations: 0.9336 MB / 388.5 MB, free: 4.082 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002185/0.3283, allocations: 43.28 kB / 388.5 MB, free: 4.035 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.3284, allocations: 31.42 kB / 388.6 MB, free: 4.004 MB / 318.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3284, allocations: 0 / 388.6 MB, free: 4.004 MB / 318.1 MB Notification: Performance of Templates: time 0.02835/0.3568, allocations: 20.95 MB / 409.5 MB, free: 15.03 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) Environment - environmentSimulation: