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.001297/0.001297, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001711/0.00171, allocations: 194.7 kB / 16.25 MB, free: 6.629 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.507/1.507, allocations: 205.1 MB / 222.1 MB, free: 4.68 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.001391/0.001391, allocations: 40.36 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2758, allocations: 46.63 MB / 324.8 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004481/0.2804, allocations: 3.018 MB / 327.9 MB, free: 15.55 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002391/0.2828, allocations: 1.197 MB / 329.1 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001899/0.283, allocations: 8.5 kB / 329.1 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004757/0.2835, allocations: 59.03 kB / 329.1 MB, free: 14.53 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002202/0.2838, allocations: 102.7 kB / 329.2 MB, free: 14.45 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009681/0.2847, allocations: 374.1 kB / 329.6 MB, free: 14.16 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009869/0.2857, allocations: 0.8019 MB / 330.4 MB, free: 13.69 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000235/0.286, allocations: 94.28 kB / 330.5 MB, free: 13.64 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005699/0.2865, allocations: 363.6 kB / 330.8 MB, free: 13.43 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002012/0.2886, allocations: 1.35 MB / 332.2 MB, free: 12.76 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001281/0.2887, allocations: 71.94 kB / 332.3 MB, free: 12.69 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000292/0.289, allocations: 127.9 kB / 332.4 MB, free: 12.56 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002276/0.2892, allocations: 232.2 kB / 332.6 MB, free: 12.34 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003222/0.2896, allocations: 350.1 kB / 332.9 MB, free: 11.99 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009584/0.2905, allocations: 0.8605 MB / 333.8 MB, free: 11.13 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.2906, allocations: 0 / 333.8 MB, free: 11.13 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.2906, allocations: 0 / 333.8 MB, free: 11.13 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.02e-05/0.2906, allocations: 0 / 333.8 MB, free: 11.13 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.003653/0.2943, allocations: 1.332 MB / 335.1 MB, free: 9.746 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.174e-05/0.2943, allocations: 8.031 kB / 335.1 MB, free: 9.738 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001841/0.2945, allocations: 80 kB / 335.2 MB, free: 9.66 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005577/0.2951, allocations: 415.5 kB / 335.6 MB, free: 9.211 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.84e-05/0.2951, allocations: 29.38 kB / 335.7 MB, free: 9.18 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.804e-05/0.2952, allocations: 40.36 kB / 335.7 MB, free: 9.141 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001842/0.2971, allocations: 1.161 MB / 336.9 MB, free: 7.969 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.167e-05/0.2971, allocations: 4 kB / 336.9 MB, free: 7.965 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.258e-05/0.2972, allocations: 16 kB / 336.9 MB, free: 7.949 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.536e-05/0.2972, allocations: 8 kB / 336.9 MB, free: 7.941 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002609/0.2998, allocations: 1.74 MB / 338.6 MB, free: 6.203 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004186/0.304, allocations: 2.49 MB / 341.1 MB, free: 3.629 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001555/0.3056, allocations: 0.9069 MB / 342 MB, free: 2.703 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00103/0.3067, allocations: 0.7162 MB / 342.7 MB, free: 1.98 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.205e-05/0.3067, allocations: 7.984 kB / 342.7 MB, free: 1.973 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001479/0.3082, allocations: 0.8967 MB / 343.6 MB, free: 1.059 MB / 270.1 MB Notification: Performance of pre-optimization done (n=47): time 1.953e-06/0.3082, allocations: 0 / 343.6 MB, free: 1.059 MB / 270.1 MB Notification: Performance of matching and sorting (n=49): time 0.01104/0.3193, allocations: 5.794 MB / 349.4 MB, free: 11.11 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.36e-05/0.3194, allocations: 81.11 kB / 349.5 MB, free: 11.01 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00115/0.3206, allocations: 0.9141 MB / 350.4 MB, free: 10.09 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001317/0.3207, allocations: 49.69 kB / 350.5 MB, free: 10.03 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002459/0.321, allocations: 300.3 kB / 350.8 MB, free: 9.734 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001892/0.3212, allocations: 161.9 kB / 350.9 MB, free: 9.574 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002438/0.3214, allocations: 114.2 kB / 351 MB, free: 9.453 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.3216, allocations: 382.8 kB / 351.4 MB, free: 9.07 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001248/0.3229, allocations: 0.8486 MB / 352.3 MB, free: 8.223 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001252/0.3241, allocations: 0.9362 MB / 353.2 MB, free: 7.254 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002029/0.3262, allocations: 1.461 MB / 354.7 MB, free: 5.762 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.3262, allocations: 0 / 354.7 MB, free: 5.762 MB / 286.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003715/0.3299, allocations: 2.494 MB / 357.2 MB, free: 3.25 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.825e-05/0.33, allocations: 4 kB / 357.2 MB, free: 3.246 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.45e-05/0.33, allocations: 7.938 kB / 357.2 MB, free: 3.238 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002098/0.3321, allocations: 1.904 MB / 359.1 MB, free: 1.324 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005471/0.3327, allocations: 115.8 kB / 359.2 MB, free: 1.211 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00832/0.341, allocations: 6.695 MB / 365.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001705/0.3427, allocations: 223.8 kB / 366.1 MB, free: 9.988 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.3429, allocations: 27.92 kB / 366.1 MB, free: 9.961 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.0006344/0.3435, allocations: 268 kB / 366.4 MB, free: 9.688 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001738/0.3437, allocations: 71.16 kB / 366.5 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002354/0.3439, allocations: 98.17 kB / 366.6 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.251e-05/0.344, allocations: 8 kB / 366.6 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/0.344, allocations: 0 / 366.6 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/0.344, allocations: 3.984 kB / 366.6 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004645/0.3487, allocations: 3.092 MB / 369.7 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.3487, allocations: 0 / 369.7 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005119/0.3492, allocations: 83.94 kB / 369.7 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002066/0.3513, allocations: 1.873 MB / 371.6 MB, free: 4.379 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.462e-05/0.3514, allocations: 27.95 kB / 371.6 MB, free: 4.352 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007992/0.3594, allocations: 6.334 MB / 378 MB, free: 13.71 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3594, allocations: 0 / 378 MB, free: 13.71 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005144/0.3646, allocations: 3.228 MB / 381.2 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004645/0.3651, allocations: 204.2 kB / 381.4 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001231/0.3652, allocations: 20.12 kB / 381.4 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001601/0.3668, allocations: 275.6 kB / 381.7 MB, free: 9.941 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001477/0.3683, allocations: 0.5694 MB / 382.3 MB, free: 9.371 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.134e-05/0.3684, allocations: 31.97 kB / 382.3 MB, free: 9.34 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007672/0.3692, allocations: 0.6709 MB / 383 MB, free: 8.672 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.014e-06/0.3692, allocations: 0 / 383 MB, free: 8.672 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008565/0.37, allocations: 187.9 kB / 383.1 MB, free: 8.488 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.0003697/0.3704, allocations: 151.1 kB / 383.3 MB, free: 8.332 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003285/0.3737, allocations: 1.941 MB / 385.2 MB, free: 6.359 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.3737, allocations: 0 / 385.2 MB, free: 6.359 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001701/0.3754, allocations: 1.087 MB / 386.3 MB, free: 5.246 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006277/0.3761, allocations: 66.91 kB / 386.4 MB, free: 5.184 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004359/0.3805, allocations: 2.182 MB / 388.6 MB, free: 2.965 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005044/0.381, allocations: 0.9295 MB / 389.5 MB, free: 2.012 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002373/0.3812, allocations: 39.28 kB / 389.5 MB, free: 1.969 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001212/0.3813, allocations: 39.42 kB / 389.6 MB, free: 1.93 MB / 318.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3814, allocations: 4 kB / 389.6 MB, free: 1.926 MB / 318.1 MB Notification: Performance of Templates: time 0.03399/0.4154, allocations: 23.45 MB / 413 MB, free: 10.45 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)