Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001252/0.001252, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.001474/0.001474, allocations: 181.2 kB / 17.2 MB, free: 5.914 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.484/1.484, allocations: 205.4 MB / 223.4 MB, free: 5.535 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.000448/0.0004481, allocations: 8 kB / 280.1 MB, free: 12.86 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1938/0.1942, allocations: 47.6 MB / 327.7 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.00239/0.1967, allocations: 2.407 MB / 330.1 MB, free: 15.52 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001919/0.1986, allocations: 1.144 MB / 331.3 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001857/0.1988, allocations: 3.938 kB / 331.3 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003381/0.1992, allocations: 65.09 kB / 331.3 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002597/0.1994, allocations: 143.7 kB / 331.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007875/0.2002, allocations: 322.3 kB / 331.8 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004869/0.2007, allocations: 461.3 kB / 332.2 MB, free: 13.88 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001578/0.2009, allocations: 85.72 kB / 332.3 MB, free: 13.82 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003429/0.2013, allocations: 309.2 kB / 332.6 MB, free: 13.65 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001552/0.2028, allocations: 1.418 MB / 334 MB, free: 13.12 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000107/0.2029, allocations: 34.62 kB / 334.1 MB, free: 13.12 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000212/0.2032, allocations: 75.48 kB / 334.1 MB, free: 13.07 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001875/0.2034, allocations: 203.4 kB / 334.3 MB, free: 12.87 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001118/0.2035, allocations: 125.3 kB / 334.5 MB, free: 12.74 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005067/0.204, allocations: 0.5975 MB / 335.1 MB, free: 12.14 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.673e-06/0.204, allocations: 0 / 335.1 MB, free: 12.14 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.204, allocations: 4 kB / 335.1 MB, free: 12.14 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.204, allocations: 0 / 335.1 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.003297/0.2073, allocations: 1.317 MB / 336.4 MB, free: 10.77 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.2074, allocations: 8.031 kB / 336.4 MB, free: 10.77 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001337/0.2075, allocations: 75.16 kB / 336.5 MB, free: 10.69 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000493/0.208, allocations: 398.7 kB / 336.8 MB, free: 10.26 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.132e-05/0.2081, allocations: 29 kB / 336.9 MB, free: 10.23 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.302e-05/0.2081, allocations: 36 kB / 336.9 MB, free: 10.19 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001611/0.2098, allocations: 1.173 MB / 338.1 MB, free: 9.008 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.2098, allocations: 3.906 kB / 338.1 MB, free: 9.004 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.744e-05/0.2099, allocations: 16 kB / 338.1 MB, free: 8.988 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.2099, allocations: 8 kB / 338.1 MB, free: 8.98 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002411/0.2123, allocations: 1.783 MB / 339.9 MB, free: 7.199 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003817/0.2161, allocations: 2.557 MB / 342.4 MB, free: 4.562 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001541/0.2177, allocations: 0.9343 MB / 343.4 MB, free: 3.609 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.011e-05/0.2177, allocations: 7.938 kB / 343.4 MB, free: 3.602 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00129/0.219, allocations: 0.9084 MB / 344.3 MB, free: 2.672 MB / 270.1 MB Notification: Performance of pre-optimization done (n=47): time 2.063e-06/0.2191, allocations: 0 / 344.3 MB, free: 2.672 MB / 270.1 MB Notification: Performance of matching and sorting (n=49): time 0.01037/0.2294, allocations: 6.032 MB / 350.3 MB, free: 12.48 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.1e-05/0.2295, allocations: 85.11 kB / 350.4 MB, free: 12.38 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001011/0.2305, allocations: 0.9064 MB / 351.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.121e-05/0.2306, allocations: 45.7 kB / 351.4 MB, free: 11.41 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000187/0.2308, allocations: 296.3 kB / 351.7 MB, free: 11.12 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001375/0.231, allocations: 165.9 kB / 351.8 MB, free: 10.96 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.321e-05/0.231, allocations: 16 kB / 351.8 MB, free: 10.94 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.2312, allocations: 382.8 kB / 352.2 MB, free: 10.56 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001116/0.2323, allocations: 0.8564 MB / 353.1 MB, free: 9.699 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001171/0.2335, allocations: 0.948 MB / 354 MB, free: 8.723 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00104/0.2345, allocations: 0.7847 MB / 354.8 MB, free: 7.938 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.2345, allocations: 0 / 354.8 MB, free: 7.938 MB / 286.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003304/0.2378, allocations: 2.494 MB / 357.3 MB, free: 5.426 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.2379, allocations: 8 kB / 357.3 MB, free: 5.418 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.515e-06/0.2379, allocations: 0 / 357.3 MB, free: 5.418 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00181/0.2397, allocations: 1.9 MB / 359.2 MB, free: 3.508 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004973/0.2402, allocations: 123.8 kB / 359.3 MB, free: 3.387 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006844/0.2471, allocations: 6.471 MB / 365.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001364/0.2484, allocations: 307.5 kB / 366.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.056e-05/0.2485, allocations: 20 kB / 366.1 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.0003416/0.2489, allocations: 252 kB / 366.4 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001034/0.249, allocations: 71.16 kB / 366.4 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001754/0.2492, allocations: 106.2 kB / 366.5 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/0.2492, allocations: 11.95 kB / 366.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.2492, allocations: 0 / 366.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.2492, allocations: 4 kB / 366.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003683/0.2529, allocations: 3.131 MB / 369.7 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.2529, allocations: 0 / 369.7 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004445/0.2534, allocations: 95.94 kB / 369.8 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001739/0.2551, allocations: 1.865 MB / 371.6 MB, free: 6.672 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.174e-05/0.2552, allocations: 19.97 kB / 371.7 MB, free: 6.652 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006076/0.2613, allocations: 6.204 MB / 377.9 MB, free: 160 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.2613, allocations: 4.031 kB / 377.9 MB, free: 156 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004431/0.2657, allocations: 3.303 MB / 381.2 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003032/0.266, allocations: 200.3 kB / 381.4 MB, free: 12.58 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001095/0.2662, allocations: 24.11 kB / 381.4 MB, free: 12.56 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00157/0.2677, allocations: 355.6 kB / 381.7 MB, free: 12.21 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001299/0.269, allocations: 0.6393 MB / 382.4 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.648e-05/0.2691, allocations: 31.95 kB / 382.4 MB, free: 11.54 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006545/0.2698, allocations: 0.6709 MB / 383.1 MB, free: 10.87 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2698, allocations: 3.938 kB / 383.1 MB, free: 10.87 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007466/0.2705, allocations: 188 kB / 383.3 MB, free: 10.68 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.0002741/0.2708, allocations: 151.2 kB / 383.4 MB, free: 10.53 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002834/0.2737, allocations: 1.953 MB / 385.4 MB, free: 8.543 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.2737, allocations: 8.109 kB / 385.4 MB, free: 8.535 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001518/0.2752, allocations: 1.087 MB / 386.5 MB, free: 7.422 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004341/0.2757, allocations: 62.91 kB / 386.5 MB, free: 7.363 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003896/0.2796, allocations: 2.289 MB / 388.8 MB, free: 5.043 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004676/0.28, allocations: 0.9375 MB / 389.7 MB, free: 4.082 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002077/0.2803, allocations: 35.28 kB / 389.8 MB, free: 4.043 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.2804, allocations: 35.42 kB / 389.8 MB, free: 4.008 MB / 318.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2804, allocations: 0 / 389.8 MB, free: 4.008 MB / 318.1 MB Notification: Performance of Templates: time 0.02727/0.3077, allocations: 20.94 MB / 410.8 MB, free: 15.04 MB / 350.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) Environment - environmentSimulation: