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.00117/0.00117, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 196.2 kB / 16.53 MB, free: 6.699 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.383/1.383, allocations: 205.1 MB / 222.4 MB, free: 4.617 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.001253/0.001253, allocations: 51.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2669, allocations: 46.63 MB / 325.3 MB, free: 1.859 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.00431/0.2713, allocations: 2.975 MB / 328.3 MB, free: 15.49 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00255/0.2738, allocations: 1.204 MB / 329.5 MB, free: 14.51 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003354/0.2742, allocations: 8.5 kB / 329.5 MB, free: 14.51 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007281/0.275, allocations: 82.67 kB / 329.6 MB, free: 14.44 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002968/0.2753, allocations: 110.6 kB / 329.7 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001123/0.2764, allocations: 409.5 kB / 330.1 MB, free: 14.02 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001118/0.2776, allocations: 0.806 MB / 330.9 MB, free: 13.54 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002632/0.2778, allocations: 89.95 kB / 331 MB, free: 13.5 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006424/0.2785, allocations: 355.8 kB / 331.3 MB, free: 13.3 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001893/0.2804, allocations: 1.346 MB / 332.7 MB, free: 12.54 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001405/0.2806, allocations: 68 kB / 332.7 MB, free: 12.48 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003201/0.2809, allocations: 112 kB / 332.8 MB, free: 12.37 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000268/0.2812, allocations: 223.8 kB / 333.1 MB, free: 12.15 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003722/0.2815, allocations: 346.1 kB / 333.4 MB, free: 11.81 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009213/0.2825, allocations: 0.8683 MB / 334.3 MB, free: 10.94 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.2825, allocations: 0 / 334.3 MB, free: 10.94 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.2825, allocations: 0 / 334.3 MB, free: 10.94 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.809e-06/0.2825, allocations: 0 / 334.3 MB, free: 10.94 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.003921/0.2864, allocations: 1.332 MB / 335.6 MB, free: 9.555 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/0.2865, allocations: 8.031 kB / 335.6 MB, free: 9.547 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001962/0.2867, allocations: 80 kB / 335.7 MB, free: 9.469 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006419/0.2873, allocations: 423.4 kB / 336.1 MB, free: 9.016 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.848e-05/0.2874, allocations: 29.38 kB / 336.1 MB, free: 8.984 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/0.2876, allocations: 40.36 kB / 336.2 MB, free: 8.945 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002002/0.2896, allocations: 1.154 MB / 337.3 MB, free: 7.777 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.431e-05/0.2896, allocations: 8 kB / 337.3 MB, free: 7.77 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.685e-05/0.2897, allocations: 16 kB / 337.3 MB, free: 7.754 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.182e-05/0.2897, allocations: 8 kB / 337.4 MB, free: 7.746 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002787/0.2925, allocations: 1.748 MB / 339.1 MB, free: 6 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004315/0.2968, allocations: 2.482 MB / 341.6 MB, free: 3.438 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001693/0.2985, allocations: 0.9108 MB / 342.5 MB, free: 2.508 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001121/0.2997, allocations: 0.7123 MB / 343.2 MB, free: 1.789 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.457e-05/0.2997, allocations: 11.98 kB / 343.2 MB, free: 1.777 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001529/0.3013, allocations: 0.8967 MB / 344.1 MB, free: 0.8594 MB / 270.1 MB Notification: Performance of pre-optimization done (n=47): time 3.887e-06/0.3013, allocations: 4 kB / 344.1 MB, free: 0.8555 MB / 270.1 MB Notification: Performance of matching and sorting (n=49): time 0.01149/0.3128, allocations: 5.784 MB / 349.9 MB, free: 10.91 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.26e-05/0.3129, allocations: 89.11 kB / 350 MB, free: 10.8 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001133/0.314, allocations: 0.9141 MB / 350.9 MB, free: 9.883 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.884e-05/0.3141, allocations: 49.69 kB / 351 MB, free: 9.828 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002199/0.3143, allocations: 292.3 kB / 351.2 MB, free: 9.539 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001534/0.3145, allocations: 169.9 kB / 351.4 MB, free: 9.371 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002222/0.3147, allocations: 114.2 kB / 351.5 MB, free: 9.25 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.3149, allocations: 382.8 kB / 351.9 MB, free: 8.867 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00131/0.3162, allocations: 0.8486 MB / 352.7 MB, free: 8.02 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001316/0.3176, allocations: 0.9362 MB / 353.7 MB, free: 7.051 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002199/0.3198, allocations: 1.461 MB / 355.1 MB, free: 5.559 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.3198, allocations: 4 kB / 355.1 MB, free: 5.555 MB / 286.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003803/0.3236, allocations: 2.494 MB / 357.6 MB, free: 3.043 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/0.3236, allocations: 10.95 kB / 357.6 MB, free: 3.035 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.3237, allocations: 4 kB / 357.6 MB, free: 3.031 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002004/0.3257, allocations: 1.896 MB / 359.5 MB, free: 1.125 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005448/0.3262, allocations: 115.8 kB / 359.7 MB, free: 1.012 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007681/0.3339, allocations: 6.695 MB / 366.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001691/0.3356, allocations: 227.8 kB / 366.6 MB, free: 9.785 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001139/0.3358, allocations: 27.98 kB / 366.6 MB, free: 9.758 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.0004639/0.3363, allocations: 259.9 kB / 366.9 MB, free: 9.492 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001628/0.3364, allocations: 75.16 kB / 366.9 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001938/0.3366, allocations: 98.17 kB / 367 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.3366, allocations: 4 kB / 367 MB, free: 9.312 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.3367, allocations: 4 kB / 367 MB, free: 9.309 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.3367, allocations: 3.984 kB / 367 MB, free: 9.305 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004071/0.3407, allocations: 3.094 MB / 370.1 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.3408, allocations: 0 / 370.1 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005106/0.3413, allocations: 91.86 kB / 370.2 MB, free: 6.051 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001949/0.3432, allocations: 1.857 MB / 372.1 MB, free: 4.184 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.889e-05/0.3433, allocations: 31.95 kB / 372.1 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006886/0.3502, allocations: 6.33 MB / 378.4 MB, free: 13.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3503, allocations: 4 kB / 378.4 MB, free: 13.51 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005113/0.3554, allocations: 3.232 MB / 381.7 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000407/0.3558, allocations: 204.2 kB / 381.9 MB, free: 10.03 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001436/0.356, allocations: 20 kB / 381.9 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001815/0.3578, allocations: 271.6 kB / 382.2 MB, free: 9.742 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001437/0.3592, allocations: 0.5616 MB / 382.7 MB, free: 9.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/0.3594, allocations: 31.97 kB / 382.8 MB, free: 9.148 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009411/0.3603, allocations: 0.6748 MB / 383.4 MB, free: 8.477 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.3603, allocations: 3.938 kB / 383.4 MB, free: 8.473 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001007/0.3613, allocations: 188 kB / 383.6 MB, free: 8.289 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.0004045/0.3617, allocations: 151.1 kB / 383.8 MB, free: 8.133 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003882/0.3656, allocations: 1.941 MB / 385.7 MB, free: 6.164 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.281e-06/0.3657, allocations: 0 / 385.7 MB, free: 6.164 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002169/0.3678, allocations: 1.083 MB / 386.8 MB, free: 5.055 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007397/0.3686, allocations: 67.06 kB / 386.9 MB, free: 4.992 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00477/0.3734, allocations: 1.982 MB / 388.8 MB, free: 2.973 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005625/0.374, allocations: 0.9296 MB / 389.8 MB, free: 2.02 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002552/0.3742, allocations: 43.27 kB / 389.8 MB, free: 1.973 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001303/0.3744, allocations: 43.41 kB / 389.8 MB, free: 1.93 MB / 318.1 MB Notification: Performance of SimCode: time 1.693e-06/0.3744, allocations: 0 / 389.8 MB, free: 1.93 MB / 318.1 MB Notification: Performance of Templates: time 0.0391/0.4135, allocations: 24.27 MB / 414.1 MB, free: 9.633 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)