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.001384/0.001384, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001515/0.001515, allocations: 196.9 kB / 16.26 MB, free: 6.621 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.572/1.572, allocations: 205.1 MB / 222.1 MB, free: 4.723 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.001152/0.001152, allocations: 47.94 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3043, allocations: 46.62 MB / 324.8 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004573/0.309, allocations: 3.022 MB / 327.9 MB, free: 15.53 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002699/0.3117, allocations: 1.204 MB / 329.1 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002329/0.312, allocations: 4.969 kB / 329.1 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005089/0.3125, allocations: 58.98 kB / 329.1 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000232/0.3128, allocations: 97.34 kB / 329.2 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001006/0.3138, allocations: 382.5 kB / 329.6 MB, free: 14.12 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008503/0.3146, allocations: 0.7986 MB / 330.4 MB, free: 13.66 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002102/0.3149, allocations: 90.23 kB / 330.5 MB, free: 13.61 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004921/0.3154, allocations: 371.3 kB / 330.8 MB, free: 13.4 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001732/0.3171, allocations: 1.353 MB / 332.2 MB, free: 12.73 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001868/0.3173, allocations: 72 kB / 332.3 MB, free: 12.66 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002675/0.3176, allocations: 116 kB / 332.4 MB, free: 12.54 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002966/0.3179, allocations: 236.2 kB / 332.6 MB, free: 12.31 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004045/0.3183, allocations: 346.1 kB / 332.9 MB, free: 11.97 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001018/0.3193, allocations: 0.8604 MB / 333.8 MB, free: 11.11 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.3193, allocations: 0 / 333.8 MB, free: 11.11 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.227e-06/0.3193, allocations: 0 / 333.8 MB, free: 11.11 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.262e-05/0.3194, allocations: 4 kB / 333.8 MB, free: 11.11 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.003646/0.323, allocations: 1.328 MB / 335.1 MB, free: 9.727 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.475e-05/0.3231, allocations: 12.03 kB / 335.1 MB, free: 9.715 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000175/0.3233, allocations: 76 kB / 335.2 MB, free: 9.641 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005633/0.3238, allocations: 419.5 kB / 335.6 MB, free: 9.188 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.79e-05/0.3239, allocations: 29.38 kB / 335.7 MB, free: 9.156 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001027/0.324, allocations: 40.36 kB / 335.7 MB, free: 9.117 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001875/0.3259, allocations: 1.158 MB / 336.9 MB, free: 7.949 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.717e-05/0.3259, allocations: 4 kB / 336.9 MB, free: 7.945 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.34e-05/0.326, allocations: 19.94 kB / 336.9 MB, free: 7.926 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.326, allocations: 8 kB / 336.9 MB, free: 7.918 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002727/0.3288, allocations: 1.74 MB / 338.6 MB, free: 6.18 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004761/0.3335, allocations: 2.482 MB / 341.1 MB, free: 3.613 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001575/0.3351, allocations: 0.9108 MB / 342 MB, free: 2.684 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00107/0.3362, allocations: 0.7162 MB / 342.7 MB, free: 1.961 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.314e-05/0.3363, allocations: 4 kB / 342.7 MB, free: 1.957 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001467/0.3378, allocations: 0.9005 MB / 343.6 MB, free: 1.039 MB / 270.1 MB Notification: Performance of pre-optimization done (n=47): time 2.695e-06/0.3378, allocations: 3.938 kB / 343.6 MB, free: 1.035 MB / 270.1 MB Notification: Performance of matching and sorting (n=49): time 0.01112/0.3489, allocations: 5.798 MB / 349.4 MB, free: 11.08 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.182e-05/0.349, allocations: 81.11 kB / 349.5 MB, free: 10.98 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001208/0.3502, allocations: 0.9141 MB / 350.4 MB, free: 10.06 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001069/0.3504, allocations: 49.69 kB / 350.5 MB, free: 10 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002835/0.3507, allocations: 296.3 kB / 350.8 MB, free: 9.711 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000162/0.3508, allocations: 165.9 kB / 350.9 MB, free: 9.547 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002547/0.3511, allocations: 122.2 kB / 351.1 MB, free: 9.418 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.3513, allocations: 378.8 kB / 351.4 MB, free: 9.039 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001274/0.3526, allocations: 0.8486 MB / 352.3 MB, free: 8.191 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00133/0.3539, allocations: 0.9324 MB / 353.2 MB, free: 7.227 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002052/0.356, allocations: 1.465 MB / 354.7 MB, free: 5.73 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.356, allocations: 0 / 354.7 MB, free: 5.73 MB / 286.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003685/0.3597, allocations: 2.482 MB / 357.2 MB, free: 3.23 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.703e-05/0.3597, allocations: 8 kB / 357.2 MB, free: 3.223 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.3597, allocations: 4.031 kB / 357.2 MB, free: 3.219 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002101/0.3618, allocations: 1.904 MB / 359.1 MB, free: 1.305 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005286/0.3624, allocations: 111.9 kB / 359.2 MB, free: 1.195 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008357/0.3708, allocations: 6.699 MB / 365.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001505/0.3723, allocations: 223.8 kB / 366.1 MB, free: 9.969 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-05/0.3724, allocations: 35.92 kB / 366.1 MB, free: 9.934 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.0004827/0.3729, allocations: 256.2 kB / 366.4 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001529/0.373, allocations: 67.16 kB / 366.5 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001934/0.3732, allocations: 106.1 kB / 366.6 MB, free: 9.496 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.3733, allocations: 8 kB / 366.6 MB, free: 9.488 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.3733, allocations: 0 / 366.6 MB, free: 9.488 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.3733, allocations: 3.984 kB / 366.6 MB, free: 9.484 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003997/0.3773, allocations: 3.092 MB / 369.7 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.349e-06/0.3773, allocations: 4 kB / 369.7 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004835/0.3778, allocations: 87.94 kB / 369.7 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001925/0.3797, allocations: 1.869 MB / 371.6 MB, free: 4.355 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.931e-05/0.3798, allocations: 23.95 kB / 371.6 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007364/0.3872, allocations: 6.342 MB / 378 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.3873, allocations: 0 / 378 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004798/0.3921, allocations: 3.224 MB / 381.2 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004818/0.3926, allocations: 200.2 kB / 381.4 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001193/0.3927, allocations: 24 kB / 381.4 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001554/0.3943, allocations: 271.6 kB / 381.7 MB, free: 9.922 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00145/0.3957, allocations: 0.5694 MB / 382.3 MB, free: 9.352 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.924e-05/0.3958, allocations: 27.97 kB / 382.3 MB, free: 9.324 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007668/0.3966, allocations: 0.6748 MB / 383 MB, free: 8.652 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.653e-06/0.3966, allocations: 0 / 383 MB, free: 8.652 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008702/0.3975, allocations: 187.9 kB / 383.1 MB, free: 8.469 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.0003613/0.3979, allocations: 151.4 kB / 383.3 MB, free: 8.312 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003312/0.4012, allocations: 1.937 MB / 385.2 MB, free: 6.344 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.4012, allocations: 4 kB / 385.2 MB, free: 6.34 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001779/0.403, allocations: 1.091 MB / 386.3 MB, free: 5.223 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007353/0.4037, allocations: 66.97 kB / 386.4 MB, free: 5.16 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004435/0.4082, allocations: 2.166 MB / 388.6 MB, free: 2.957 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005714/0.4088, allocations: 0.9334 MB / 389.5 MB, free: 2 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002724/0.4091, allocations: 39.28 kB / 389.5 MB, free: 1.957 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001315/0.4092, allocations: 43.42 kB / 389.6 MB, free: 1.914 MB / 318.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4092, allocations: 0 / 389.6 MB, free: 1.914 MB / 318.1 MB Notification: Performance of Templates: time 0.03466/0.4439, allocations: 23.45 MB / 413 MB, free: 10.43 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.makefile (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)