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.0009707/0.0009707, allocations: 99.31 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.00111/0.00111, 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.408/1.408, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0003952/0.0003952, allocations: 10.81 kB / 278.9 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2089/0.2093, allocations: 47.58 MB / 326.4 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002346/0.2117, allocations: 2.414 MB / 328.9 MB, free: 15.51 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001736/0.2134, allocations: 1.146 MB / 330 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001475/0.2136, allocations: 4.75 kB / 330 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002808/0.2139, allocations: 57.27 kB / 330.1 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002116/0.2141, allocations: 140.6 kB / 330.2 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006965/0.2148, allocations: 333.5 kB / 330.5 MB, free: 14.17 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005249/0.2153, allocations: 465.4 kB / 331 MB, free: 13.86 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001654/0.2155, allocations: 73.45 kB / 331.1 MB, free: 13.81 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003718/0.2159, allocations: 317.3 kB / 331.4 MB, free: 13.63 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001422/0.2173, allocations: 1.414 MB / 332.8 MB, free: 13.11 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001098/0.2175, allocations: 35.69 kB / 332.8 MB, free: 13.11 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001817/0.2176, allocations: 78.55 kB / 332.9 MB, free: 13.06 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001841/0.2178, allocations: 195.4 kB / 333.1 MB, free: 12.87 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001187/0.218, allocations: 125.3 kB / 333.2 MB, free: 12.74 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005332/0.2185, allocations: 0.6014 MB / 333.8 MB, free: 12.14 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.434e-06/0.2185, allocations: 0 / 333.8 MB, free: 12.14 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2185, allocations: 0 / 333.8 MB, free: 12.14 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.2185, allocations: 4 kB / 333.8 MB, free: 12.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.003303/0.2218, allocations: 1.317 MB / 335.1 MB, free: 10.77 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.2219, allocations: 8.031 kB / 335.1 MB, free: 10.76 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001351/0.222, allocations: 75.16 kB / 335.2 MB, free: 10.68 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004914/0.2225, allocations: 402.7 kB / 335.6 MB, free: 10.25 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.788e-05/0.2226, allocations: 29 kB / 335.6 MB, free: 10.21 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.374e-05/0.2227, allocations: 39.98 kB / 335.7 MB, free: 10.18 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001764/0.2244, allocations: 1.165 MB / 336.8 MB, free: 9 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.2245, allocations: 3.906 kB / 336.8 MB, free: 8.996 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.613e-05/0.2245, allocations: 16 kB / 336.8 MB, free: 8.98 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.2246, allocations: 8 kB / 336.9 MB, free: 8.973 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002486/0.2271, allocations: 1.775 MB / 338.6 MB, free: 7.199 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004015/0.2311, allocations: 2.561 MB / 341.2 MB, free: 4.559 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001542/0.2326, allocations: 0.9342 MB / 342.1 MB, free: 3.605 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.395e-05/0.2327, allocations: 4 kB / 342.1 MB, free: 3.602 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0014/0.2341, allocations: 0.9162 MB / 343 MB, free: 2.664 MB / 270.1 MB Notification: Performance of pre-optimization done (n=47): time 2.114e-06/0.2341, allocations: 0 / 343 MB, free: 2.664 MB / 270.1 MB Notification: Performance of matching and sorting (n=49): time 0.01098/0.2451, allocations: 6.029 MB / 349.1 MB, free: 12.48 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.561e-05/0.2452, allocations: 85.11 kB / 349.2 MB, free: 12.38 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0013/0.2465, allocations: 0.9102 MB / 350.1 MB, free: 11.46 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001106/0.2467, allocations: 49.69 kB / 350.1 MB, free: 11.4 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002915/0.247, allocations: 292.3 kB / 350.4 MB, free: 11.11 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002053/0.2472, allocations: 169.8 kB / 350.6 MB, free: 10.95 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.659e-05/0.2472, allocations: 12 kB / 350.6 MB, free: 10.93 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002151/0.2475, allocations: 378.8 kB / 350.9 MB, free: 10.55 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00122/0.2487, allocations: 0.8603 MB / 351.8 MB, free: 9.691 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001237/0.2499, allocations: 0.9519 MB / 352.8 MB, free: 8.711 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001223/0.2512, allocations: 0.7808 MB / 353.5 MB, free: 7.93 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.2512, allocations: 0 / 353.5 MB, free: 7.93 MB / 286.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003792/0.255, allocations: 2.486 MB / 356 MB, free: 5.426 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.515e-05/0.255, allocations: 12.03 kB / 356 MB, free: 5.414 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.2551, allocations: 0 / 356 MB, free: 5.414 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002059/0.2571, allocations: 1.904 MB / 357.9 MB, free: 3.5 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005078/0.2576, allocations: 123.8 kB / 358.1 MB, free: 3.379 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007334/0.265, allocations: 6.471 MB / 364.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001486/0.2665, allocations: 303.6 kB / 364.8 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.191e-05/0.2666, allocations: 23.98 kB / 364.9 MB, free: 12.29 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.0004003/0.267, allocations: 255.9 kB / 365.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001358/0.2671, allocations: 71.39 kB / 365.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001869/0.2673, allocations: 106.2 kB / 365.3 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.2673, allocations: 7.953 kB / 365.3 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.2674, allocations: 4 kB / 365.3 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.2674, allocations: 7.984 kB / 365.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003913/0.2713, allocations: 3.119 MB / 368.4 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.2713, allocations: 0 / 368.4 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004716/0.2718, allocations: 96 kB / 368.5 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001859/0.2737, allocations: 1.869 MB / 370.4 MB, free: 6.664 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.741e-05/0.2737, allocations: 23.95 kB / 370.4 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006305/0.28, allocations: 6.184 MB / 376.6 MB, free: 168 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.2801, allocations: 4.031 kB / 376.6 MB, free: 164 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00474/0.2848, allocations: 3.308 MB / 379.9 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004322/0.2853, allocations: 208.3 kB / 380.1 MB, free: 12.58 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001088/0.2854, allocations: 23.94 kB / 380.1 MB, free: 12.56 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001772/0.2872, allocations: 355.6 kB / 380.5 MB, free: 12.21 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001375/0.2886, allocations: 0.6394 MB / 381.1 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.359e-05/0.2886, allocations: 27.97 kB / 381.1 MB, free: 11.54 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006568/0.2893, allocations: 0.6786 MB / 381.8 MB, free: 10.87 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2893, allocations: 0 / 381.8 MB, free: 10.87 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007675/0.2901, allocations: 192 kB / 382 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.0002897/0.2904, allocations: 159.2 kB / 382.2 MB, free: 10.52 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002884/0.2933, allocations: 1.945 MB / 384.1 MB, free: 8.539 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.2933, allocations: 384 / 384.1 MB, free: 8.539 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001534/0.2948, allocations: 1.099 MB / 385.2 MB, free: 7.414 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004486/0.2953, allocations: 54.97 kB / 385.3 MB, free: 7.363 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004104/0.2994, allocations: 2.285 MB / 387.5 MB, free: 5.043 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004526/0.2999, allocations: 0.9414 MB / 388.5 MB, free: 4.078 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002156/0.3001, allocations: 43.28 kB / 388.5 MB, free: 4.031 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.3002, allocations: 31.41 kB / 388.6 MB, free: 4 MB / 318.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3002, allocations: 4 kB / 388.6 MB, free: 3.996 MB / 318.1 MB Notification: Performance of Templates: time 0.03089/0.3311, allocations: 20.94 MB / 409.5 MB, free: 15.03 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: