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.001109/0.001108, allocations: 113.3 kB / 17.06 MB, free: 5.965 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.001065/0.001065, allocations: 198.8 kB / 18.01 MB, free: 5.047 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.563/1.563, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.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.001631/0.001631, allocations: 51.92 kB / 327.9 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1193, allocations: 46.63 MB / 374.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004987/0.1243, allocations: 2.979 MB / 377.5 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002603/0.127, allocations: 1.205 MB / 378.7 MB, free: 360 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004455/0.1274, allocations: 4 kB / 378.7 MB, free: 356 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006204/0.1281, allocations: 79.3 kB / 378.7 MB, free: 276 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000475/0.1286, allocations: 122.9 kB / 378.9 MB, free: 152 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2575/0.3861, allocations: 397.1 kB / 379.3 MB, free: 9.758 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001365/0.3875, allocations: 0.8002 MB / 380.1 MB, free: 9.758 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002649/0.3878, allocations: 100.1 kB / 380.2 MB, free: 9.734 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006538/0.3884, allocations: 363 kB / 380.5 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002327/0.3908, allocations: 1.341 MB / 381.8 MB, free: 9.605 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002046/0.391, allocations: 68.72 kB / 381.9 MB, free: 9.605 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003776/0.3914, allocations: 121 kB / 382 MB, free: 9.605 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003133/0.3917, allocations: 228.6 kB / 382.3 MB, free: 9.578 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004264/0.3921, allocations: 350.1 kB / 382.6 MB, free: 9.469 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001551/0.3937, allocations: 0.8735 MB / 383.5 MB, free: 9.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.3937, allocations: 0 / 383.5 MB, free: 9.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.3937, allocations: 0 / 383.5 MB, free: 9.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.931e-05/0.3938, allocations: 1.312 kB / 383.5 MB, free: 9.34 MB / 318.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.00404/0.3978, allocations: 1.347 MB / 384.8 MB, free: 8.672 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.3979, allocations: 9.172 kB / 384.8 MB, free: 8.672 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001999/0.3981, allocations: 82.97 kB / 384.9 MB, free: 8.629 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006392/0.3987, allocations: 430.5 kB / 385.3 MB, free: 8.336 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.655e-05/0.3988, allocations: 28.72 kB / 385.4 MB, free: 8.336 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001033/0.3989, allocations: 44.61 kB / 385.4 MB, free: 8.332 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002082/0.401, allocations: 1.159 MB / 386.6 MB, free: 8.109 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.401, allocations: 8.266 kB / 386.6 MB, free: 8.105 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.687e-05/0.4011, allocations: 15.88 kB / 386.6 MB, free: 8.094 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.473e-05/0.4011, allocations: 9.125 kB / 386.6 MB, free: 8.094 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002888/0.404, allocations: 1.749 MB / 388.3 MB, free: 7.777 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004971/0.409, allocations: 2.462 MB / 390.8 MB, free: 6.812 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001979/0.411, allocations: 0.9057 MB / 391.7 MB, free: 6.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001332/0.4123, allocations: 0.7159 MB / 392.4 MB, free: 6.406 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.553e-05/0.4124, allocations: 11.28 kB / 392.4 MB, free: 6.402 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001926/0.4144, allocations: 0.8999 MB / 393.3 MB, free: 6.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 2.515e-06/0.4144, allocations: 0 / 393.3 MB, free: 6.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.0124/0.4268, allocations: 5.813 MB / 399.1 MB, free: 4.301 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.589e-05/0.4269, allocations: 86.8 kB / 399.2 MB, free: 4.203 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001355/0.4282, allocations: 0.91 MB / 400.1 MB, free: 3.777 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001284/0.4284, allocations: 48.56 kB / 400.2 MB, free: 3.73 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001955/0.4286, allocations: 304.1 kB / 400.5 MB, free: 3.461 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001475/0.4287, allocations: 173.3 kB / 400.7 MB, free: 3.316 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002511/0.429, allocations: 120.4 kB / 400.8 MB, free: 3.238 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.4291, allocations: 378.9 kB / 401.1 MB, free: 2.879 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001389/0.4305, allocations: 0.8453 MB / 402 MB, free: 2.617 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001092/0.4316, allocations: 0.945 MB / 402.9 MB, free: 1.797 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001608/0.4332, allocations: 1.458 MB / 404.4 MB, free: 324 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.4332, allocations: 0 / 404.4 MB, free: 324 kB / 318.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003698/0.4369, allocations: 2.492 MB / 406.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.658e-05/0.437, allocations: 12.03 kB / 406.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/0.437, allocations: 4.688 kB / 406.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001983/0.439, allocations: 1.888 MB / 408.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005402/0.4396, allocations: 121.5 kB / 408.9 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007892/0.4475, allocations: 6.71 MB / 415.6 MB, free: 4.844 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00167/0.4492, allocations: 231.8 kB / 415.8 MB, free: 4.617 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.877e-05/0.4493, allocations: 20 kB / 415.9 MB, free: 4.598 MB / 334.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.0006002/0.4499, allocations: 268.4 kB / 416.1 MB, free: 4.336 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/0.45, allocations: 71.53 kB / 416.2 MB, free: 4.266 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002185/0.4503, allocations: 110.2 kB / 416.3 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.4503, allocations: 4 kB / 416.3 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.4503, allocations: 0 / 416.3 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.465e-06/0.4503, allocations: 4 kB / 416.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00407/0.4544, allocations: 3.094 MB / 419.4 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.4544, allocations: 7.922 kB / 419.4 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004835/0.4549, allocations: 84.34 kB / 419.5 MB, free: 0.918 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002013/0.4569, allocations: 1.866 MB / 421.4 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.686e-05/0.457, allocations: 19.97 kB / 421.4 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007404/0.4644, allocations: 6.342 MB / 427.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.4645, allocations: 0 / 427.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005768/0.4702, allocations: 3.228 MB / 431 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005391/0.4708, allocations: 216.6 kB / 431.2 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001192/0.471, allocations: 20.81 kB / 431.2 MB, free: 4.863 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001698/0.4727, allocations: 271.6 kB / 431.4 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001557/0.4742, allocations: 0.5616 MB / 432 MB, free: 4.035 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.213e-05/0.4743, allocations: 27.95 kB / 432 MB, free: 4.008 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008453/0.4752, allocations: 0.6748 MB / 432.7 MB, free: 3.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4752, allocations: 0 / 432.7 MB, free: 3.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009351/0.4761, allocations: 187.9 kB / 432.9 MB, free: 3.156 MB / 350.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.0003234/0.4765, allocations: 151.1 kB / 433 MB, free: 3 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003319/0.4798, allocations: 1.921 MB / 435 MB, free: 1.055 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.4798, allocations: 448 / 435 MB, free: 1.055 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001866/0.4817, allocations: 1.097 MB / 436.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006839/0.4824, allocations: 68.92 kB / 436.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00506/0.4874, allocations: 1.974 MB / 438.1 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005814/0.4881, allocations: 0.9182 MB / 439 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002942/0.4884, allocations: 47.22 kB / 439.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001401/0.4885, allocations: 47.36 kB / 439.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4885, allocations: 0 / 439.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of Templates: time 0.03774/0.5263, allocations: 24.39 MB / 463.5 MB, free: 4.438 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.makefile (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)