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.001507/0.001507, allocations: 110.9 kB / 16.63 MB, free: 6.953 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.001267/0.001267, allocations: 193.8 kB / 17.55 MB, free: 6.043 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.469/1.469, allocations: 205.1 MB / 223.4 MB, free: 12.44 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.001367/0.001367, allocations: 47.91 kB / 279.5 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09973/0.1011, allocations: 46.63 MB / 326.1 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004247/0.1054, allocations: 3.014 MB / 329.1 MB, free: 1.742 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002239/0.1077, allocations: 1.193 MB / 330.3 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002225/0.1079, allocations: 8 kB / 330.3 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004431/0.1084, allocations: 51.62 kB / 330.4 MB, free: 500 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002127/0.1086, allocations: 107.2 kB / 330.5 MB, free: 392 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009263/0.1096, allocations: 375.4 kB / 330.9 MB, free: 16 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008291/0.1104, allocations: 0.8074 MB / 331.7 MB, free: 15.21 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002037/0.1106, allocations: 93.56 kB / 331.8 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004562/0.1111, allocations: 359 kB / 332.1 MB, free: 14.76 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001306/0.1124, allocations: 1.355 MB / 333.5 MB, free: 13.4 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001114/0.1125, allocations: 71.94 kB / 333.5 MB, free: 13.33 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002084/0.1127, allocations: 116 kB / 333.7 MB, free: 13.22 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002155/0.113, allocations: 228.2 kB / 333.9 MB, free: 13 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003107/0.1133, allocations: 354.1 kB / 334.2 MB, free: 12.65 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007747/0.1141, allocations: 0.8644 MB / 335.1 MB, free: 11.78 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.1141, allocations: 0 / 335.1 MB, free: 11.78 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1141, allocations: 3.938 kB / 335.1 MB, free: 11.78 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.258e-06/0.1141, allocations: 0 / 335.1 MB, free: 11.78 MB / 286.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.003608/0.1177, allocations: 1.328 MB / 336.4 MB, free: 10.4 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/0.1178, allocations: 8.031 kB / 336.4 MB, free: 10.39 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001886/0.118, allocations: 80 kB / 336.5 MB, free: 10.31 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005329/0.1185, allocations: 419.5 kB / 336.9 MB, free: 9.859 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.372e-05/0.1186, allocations: 33.31 kB / 337 MB, free: 9.824 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.1187, allocations: 40.36 kB / 337 MB, free: 9.785 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001763/0.1205, allocations: 1.158 MB / 338.1 MB, free: 8.617 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.192e-05/0.1205, allocations: 4 kB / 338.2 MB, free: 8.613 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.369e-05/0.1206, allocations: 19.98 kB / 338.2 MB, free: 8.594 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/0.1206, allocations: 8 kB / 338.2 MB, free: 8.586 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002425/0.123, allocations: 1.74 MB / 339.9 MB, free: 6.848 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003953/0.127, allocations: 2.49 MB / 342.4 MB, free: 4.277 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001635/0.1287, allocations: 0.9069 MB / 343.3 MB, free: 3.352 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001277/0.1299, allocations: 0.7123 MB / 344 MB, free: 2.633 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.704e-05/0.13, allocations: 7.984 kB / 344 MB, free: 2.625 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001659/0.1317, allocations: 0.9044 MB / 344.9 MB, free: 1.699 MB / 286.1 MB Notification: Performance of pre-optimization done (n=47): time 2.084e-06/0.1317, allocations: 0 / 344.9 MB, free: 1.699 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.01136/0.1431, allocations: 5.786 MB / 350.7 MB, free: 11.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.49e-05/0.1432, allocations: 85.11 kB / 350.8 MB, free: 11.65 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001402/0.1446, allocations: 0.918 MB / 351.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001389/0.1448, allocations: 45.7 kB / 351.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002945/0.1451, allocations: 296.3 kB / 352.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001645/0.1452, allocations: 165.9 kB / 352.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002508/0.1455, allocations: 114.2 kB / 352.3 MB, free: 10.1 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.1457, allocations: 378.8 kB / 352.7 MB, free: 9.719 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00122/0.1469, allocations: 0.8486 MB / 353.6 MB, free: 8.871 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001224/0.1481, allocations: 0.9401 MB / 354.5 MB, free: 7.898 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001966/0.1501, allocations: 1.469 MB / 356 MB, free: 6.398 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.1501, allocations: 0 / 356 MB, free: 6.398 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003667/0.1538, allocations: 2.486 MB / 358.4 MB, free: 3.895 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.1539, allocations: 4 kB / 358.5 MB, free: 3.891 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.1539, allocations: 4 kB / 358.5 MB, free: 3.887 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001997/0.1559, allocations: 1.9 MB / 360.4 MB, free: 1.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004882/0.1564, allocations: 111.8 kB / 360.5 MB, free: 1.867 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007573/0.164, allocations: 6.707 MB / 367.2 MB, free: 10.85 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001391/0.1654, allocations: 231.7 kB / 367.4 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.558e-05/0.1655, allocations: 20 kB / 367.4 MB, free: 10.61 MB / 318.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.0004727/0.1659, allocations: 263.9 kB / 367.7 MB, free: 10.34 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000132/0.1661, allocations: 71.23 kB / 367.7 MB, free: 10.27 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000174/0.1663, allocations: 98.17 kB / 367.8 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.1663, allocations: 8 kB / 367.8 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.1663, allocations: 0 / 367.8 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.1663, allocations: 0 / 367.8 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003837/0.1702, allocations: 3.103 MB / 371 MB, free: 6.984 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.633e-06/0.1702, allocations: 4.125 kB / 371 MB, free: 6.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004736/0.1707, allocations: 87.88 kB / 371 MB, free: 6.895 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001785/0.1725, allocations: 1.865 MB / 372.9 MB, free: 5.02 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.42e-05/0.1725, allocations: 23.97 kB / 372.9 MB, free: 4.996 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2242/0.3967, allocations: 6.316 MB / 379.2 MB, free: 55.38 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.3968, allocations: 6.188 kB / 379.3 MB, free: 55.38 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005958/0.4028, allocations: 3.229 MB / 382.5 MB, free: 54.89 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000414/0.4032, allocations: 207.4 kB / 382.7 MB, free: 54.77 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001196/0.4033, allocations: 20.98 kB / 382.7 MB, free: 54.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001648/0.405, allocations: 267.4 kB / 383 MB, free: 54.74 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001565/0.4066, allocations: 0.5664 MB / 383.5 MB, free: 54.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.074e-05/0.4067, allocations: 29.89 kB / 383.6 MB, free: 54.6 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007614/0.4074, allocations: 0.6745 MB / 384.2 MB, free: 54.36 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4075, allocations: 0 / 384.2 MB, free: 54.36 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008356/0.4083, allocations: 183.2 kB / 384.4 MB, free: 54.34 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.0003214/0.4086, allocations: 159.6 kB / 384.6 MB, free: 54.23 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003264/0.4119, allocations: 1.935 MB / 386.5 MB, free: 53.66 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.982e-06/0.4119, allocations: 5 kB / 386.5 MB, free: 53.66 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001785/0.4137, allocations: 1.076 MB / 387.6 MB, free: 53.24 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000768/0.4145, allocations: 83.88 kB / 387.7 MB, free: 53.2 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004338/0.4188, allocations: 2.176 MB / 389.8 MB, free: 52.21 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004811/0.4194, allocations: 0.9256 MB / 390.8 MB, free: 51.49 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002807/0.4196, allocations: 44.86 kB / 390.8 MB, free: 51.48 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.4198, allocations: 43.72 kB / 390.9 MB, free: 51.46 MB / 318.1 MB Notification: Performance of SimCode: time 8.91e-07/0.4198, allocations: 0 / 390.9 MB, free: 51.46 MB / 318.1 MB Notification: Performance of Templates: time 0.02694/0.4467, allocations: 23.46 MB / 414.3 MB, free: 30.02 MB / 318.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)