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.0009927/0.0009928, allocations: 87.88 kB / 16.65 MB, free: 6.535 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.0009606/0.000961, allocations: 175.1 kB / 17.56 MB, free: 6.184 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.584/1.584, allocations: 205.4 MB / 223.7 MB, free: 13.08 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.00049/0.00049, allocations: 8 kB / 280.7 MB, free: 3.434 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1157, allocations: 47.59 MB / 328.3 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003471/0.1192, allocations: 2.64 MB / 331 MB, free: 1.102 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002362/0.1216, allocations: 1.186 MB / 332.1 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002022/0.1218, allocations: 7.844 kB / 332.2 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003997/0.1222, allocations: 63.59 kB / 332.2 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002274/0.1225, allocations: 107.2 kB / 332.3 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008636/0.1233, allocations: 359.4 kB / 332.7 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007318/0.1241, allocations: 0.7606 MB / 333.4 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002238/0.1243, allocations: 81.44 kB / 333.5 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005347/0.1249, allocations: 319 kB / 333.8 MB, free: 14.23 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001704/0.1266, allocations: 1.327 MB / 335.1 MB, free: 12.9 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001174/0.1267, allocations: 36 kB / 335.2 MB, free: 12.86 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002283/0.127, allocations: 87.95 kB / 335.3 MB, free: 12.78 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002457/0.1272, allocations: 200.2 kB / 335.5 MB, free: 12.58 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003397/0.1276, allocations: 339.8 kB / 335.8 MB, free: 12.24 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008532/0.1284, allocations: 0.8095 MB / 336.6 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1284, allocations: 0 / 336.6 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.093e-06/0.1284, allocations: 0 / 336.6 MB, free: 11.43 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.1285, allocations: 0 / 336.6 MB, free: 11.43 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.003589/0.1321, allocations: 1.305 MB / 337.9 MB, free: 10.07 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.1321, allocations: 8.031 kB / 337.9 MB, free: 10.07 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001543/0.1323, allocations: 76.03 kB / 338 MB, free: 9.992 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005245/0.1328, allocations: 431.4 kB / 338.4 MB, free: 9.527 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.192e-05/0.1329, allocations: 33.38 kB / 338.4 MB, free: 9.492 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001046/0.133, allocations: 40.28 kB / 338.5 MB, free: 9.453 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001833/0.1348, allocations: 1.173 MB / 339.7 MB, free: 8.27 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.094e-05/0.1349, allocations: 4 kB / 339.7 MB, free: 8.266 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.161e-05/0.1349, allocations: 16 kB / 339.7 MB, free: 8.25 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.619e-05/0.135, allocations: 11.98 kB / 339.7 MB, free: 8.238 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002673/0.1376, allocations: 1.783 MB / 341.5 MB, free: 6.457 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004463/0.1421, allocations: 2.557 MB / 344 MB, free: 3.816 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001695/0.1438, allocations: 0.9381 MB / 345 MB, free: 2.859 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001134/0.145, allocations: 0.728 MB / 345.7 MB, free: 2.125 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.278e-05/0.145, allocations: 4 kB / 345.7 MB, free: 2.121 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001497/0.1465, allocations: 0.9201 MB / 346.6 MB, free: 1.184 MB / 286.1 MB Notification: Performance of pre-optimization done (n=47): time 3.096e-06/0.1466, allocations: 0 / 346.6 MB, free: 1.184 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.01179/0.1584, allocations: 6.041 MB / 352.7 MB, free: 10.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.586e-05/0.1585, allocations: 85.11 kB / 352.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001308/0.1598, allocations: 0.918 MB / 353.7 MB, free: 9.953 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001298/0.1599, allocations: 45.7 kB / 353.7 MB, free: 9.902 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000268/0.1602, allocations: 296.3 kB / 354 MB, free: 9.609 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000185/0.1604, allocations: 169.9 kB / 354.2 MB, free: 9.441 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001032/0.1605, allocations: 53.69 kB / 354.2 MB, free: 9.383 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001969/0.1607, allocations: 382.7 kB / 354.6 MB, free: 9 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001301/0.162, allocations: 0.8603 MB / 355.4 MB, free: 8.137 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001425/0.1635, allocations: 0.9558 MB / 356.4 MB, free: 7.152 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002264/0.1657, allocations: 1.492 MB / 357.9 MB, free: 5.629 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.1658, allocations: 0 / 357.9 MB, free: 5.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004468/0.1702, allocations: 2.525 MB / 360.4 MB, free: 3.086 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.335e-05/0.1703, allocations: 6.812 kB / 360.4 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.762e-05/0.1703, allocations: 4 kB / 360.4 MB, free: 3.078 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002514/0.1728, allocations: 1.908 MB / 362.3 MB, free: 1.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005586/0.1734, allocations: 123.8 kB / 362.5 MB, free: 1.039 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008339/0.1818, allocations: 6.45 MB / 368.9 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001616/0.1834, allocations: 303.7 kB / 369.2 MB, free: 9.996 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.068e-05/0.1835, allocations: 23.98 kB / 369.2 MB, free: 9.973 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.0005256/0.184, allocations: 256 kB / 369.5 MB, free: 9.711 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/0.1842, allocations: 71.16 kB / 369.6 MB, free: 9.641 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000225/0.1844, allocations: 106.1 kB / 369.7 MB, free: 9.527 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.1844, allocations: 4 kB / 369.7 MB, free: 9.523 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.667e-06/0.1844, allocations: 3.938 kB / 369.7 MB, free: 9.52 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.1844, allocations: 7.984 kB / 369.7 MB, free: 9.512 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004106/0.1886, allocations: 3.135 MB / 372.8 MB, free: 6.309 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.1886, allocations: 0 / 372.8 MB, free: 6.309 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004805/0.1891, allocations: 95.92 kB / 372.9 MB, free: 6.215 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001978/0.1911, allocations: 1.857 MB / 374.8 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.229e-05/0.1911, allocations: 27.95 kB / 374.8 MB, free: 4.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2058/0.3969, allocations: 6.151 MB / 380.9 MB, free: 53.25 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.397, allocations: 1.375 kB / 380.9 MB, free: 53.25 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006125/0.4031, allocations: 3.273 MB / 384.2 MB, free: 53.06 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004488/0.4036, allocations: 212.9 kB / 384.4 MB, free: 52.96 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001644/0.4038, allocations: 23.94 kB / 384.4 MB, free: 52.96 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002028/0.4058, allocations: 348.1 kB / 384.8 MB, free: 52.96 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001681/0.4075, allocations: 0.5564 MB / 385.3 MB, free: 52.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001368/0.4077, allocations: 30.88 kB / 385.4 MB, free: 52.96 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001189/0.4089, allocations: 0.6714 MB / 386 MB, free: 52.87 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.4089, allocations: 0 / 386 MB, free: 52.87 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001169/0.41, allocations: 185.9 kB / 386.2 MB, free: 52.87 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.0003985/0.4105, allocations: 152.1 kB / 386.4 MB, free: 52.76 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003896/0.4144, allocations: 1.951 MB / 388.3 MB, free: 52.2 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/0.4144, allocations: 0 / 388.3 MB, free: 52.2 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001948/0.4163, allocations: 1.102 MB / 389.4 MB, free: 51.78 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001078/0.4174, allocations: 70.12 kB / 389.5 MB, free: 51.75 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006398/0.4239, allocations: 2.362 MB / 391.9 MB, free: 50.67 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006469/0.4245, allocations: 0.9257 MB / 392.8 MB, free: 49.95 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002914/0.4248, allocations: 41.62 kB / 392.8 MB, free: 49.94 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.425, allocations: 34.62 kB / 392.9 MB, free: 49.93 MB / 318.1 MB Notification: Performance of SimCode: time 1.553e-06/0.425, allocations: 2.438 kB / 392.9 MB, free: 49.93 MB / 318.1 MB Notification: Performance of Templates: time 0.028/0.453, allocations: 21.71 MB / 414.6 MB, free: 29.88 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)