Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.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.005941/0.005941, allocations: 101.6 kB / 15.73 MB, free: 6.477 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.00114/0.00114, allocations: 195.6 kB / 16.67 MB, free: 6.391 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.519/1.519, allocations: 205.1 MB / 222.5 MB, free: 4.57 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.001258/0.001258, allocations: 51.19 kB / 326.5 MB, free: 14.28 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.128, allocations: 46.63 MB / 373.2 MB, free: 1.344 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004448/0.1325, allocations: 2.972 MB / 376.1 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002266/0.1348, allocations: 1.193 MB / 377.3 MB, free: 13.15 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001705/0.135, allocations: 12 kB / 377.3 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004499/0.1355, allocations: 83.3 kB / 377.4 MB, free: 13.05 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002068/0.1357, allocations: 118.8 kB / 377.5 MB, free: 12.94 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009013/0.1366, allocations: 419.1 kB / 377.9 MB, free: 12.53 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007428/0.1374, allocations: 0.8075 MB / 378.8 MB, free: 11.72 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001984/0.1376, allocations: 93.59 kB / 378.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004541/0.138, allocations: 371.1 kB / 379.2 MB, free: 11.26 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001439/0.1395, allocations: 1.335 MB / 380.5 MB, free: 9.922 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001086/0.1396, allocations: 64 kB / 380.6 MB, free: 9.859 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002021/0.1398, allocations: 119.9 kB / 380.7 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002522/0.1401, allocations: 231.7 kB / 380.9 MB, free: 9.516 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003081/0.1404, allocations: 346.1 kB / 381.3 MB, free: 9.176 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008187/0.1412, allocations: 0.8761 MB / 382.2 MB, free: 8.297 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1412, allocations: 0 / 382.2 MB, free: 8.297 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1412, allocations: 0 / 382.2 MB, free: 8.297 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.909e-06/0.1413, allocations: 0 / 382.2 MB, free: 8.297 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.003409/0.1447, allocations: 1.328 MB / 383.5 MB, free: 6.918 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.1447, allocations: 8.031 kB / 383.5 MB, free: 6.91 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001464/0.1449, allocations: 80.08 kB / 383.6 MB, free: 6.832 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006019/0.1455, allocations: 423.5 kB / 384 MB, free: 6.379 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.193e-05/0.1455, allocations: 29.38 kB / 384 MB, free: 6.352 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.621e-05/0.1456, allocations: 36.28 kB / 384.1 MB, free: 6.316 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001706/0.1474, allocations: 1.165 MB / 385.2 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.934e-05/0.1474, allocations: 0 / 385.2 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.029e-05/0.1475, allocations: 16 kB / 385.2 MB, free: 5.121 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.1475, allocations: 12 kB / 385.2 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002538/0.15, allocations: 1.748 MB / 387 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004112/0.1542, allocations: 2.474 MB / 389.5 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001585/0.1558, allocations: 0.9147 MB / 390.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001091/0.1569, allocations: 0.7084 MB / 391.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.335e-05/0.157, allocations: 7.984 kB / 391.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00134/0.1583, allocations: 0.9011 MB / 392 MB, free: 14.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=47): time 2.395e-06/0.1583, allocations: 0 / 392 MB, free: 14.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.01055/0.1689, allocations: 5.793 MB / 397.8 MB, free: 8.273 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.099e-05/0.1689, allocations: 89.09 kB / 397.9 MB, free: 8.168 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001114/0.1701, allocations: 0.9102 MB / 398.8 MB, free: 7.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.88e-05/0.1702, allocations: 45.69 kB / 398.8 MB, free: 7.199 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002355/0.1704, allocations: 292.3 kB / 399.1 MB, free: 6.906 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001746/0.1706, allocations: 173.8 kB / 399.3 MB, free: 6.734 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002433/0.1708, allocations: 114.2 kB / 399.4 MB, free: 6.617 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001993/0.1711, allocations: 386.8 kB / 399.8 MB, free: 6.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001275/0.1723, allocations: 0.8447 MB / 400.6 MB, free: 5.387 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001235/0.1736, allocations: 0.9401 MB / 401.6 MB, free: 4.414 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002376/0.176, allocations: 1.465 MB / 403 MB, free: 2.918 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.176, allocations: 0 / 403 MB, free: 2.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004097/0.1801, allocations: 2.486 MB / 405.5 MB, free: 424 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.745e-05/0.1801, allocations: 8.141 kB / 405.5 MB, free: 416 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.439e-05/0.1802, allocations: 7.984 kB / 405.5 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0023/0.1825, allocations: 1.896 MB / 407.4 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005753/0.1831, allocations: 115.8 kB / 407.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009497/0.1926, allocations: 6.695 MB / 414.2 MB, free: 7.379 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001429/0.194, allocations: 231.7 kB / 414.5 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001343/0.1942, allocations: 23.98 kB / 414.5 MB, free: 7.129 MB / 350.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.0006192/0.1948, allocations: 263.8 kB / 414.7 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002367/0.1951, allocations: 75.16 kB / 414.8 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002134/0.1953, allocations: 98.17 kB / 414.9 MB, free: 6.684 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.1953, allocations: 4 kB / 414.9 MB, free: 6.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.1953, allocations: 4 kB / 414.9 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.1953, allocations: 4.031 kB / 414.9 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004334/0.1997, allocations: 3.098 MB / 418 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.1997, allocations: 0 / 418 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004914/0.2002, allocations: 87.98 kB / 418.1 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001899/0.2021, allocations: 1.869 MB / 420 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.823e-05/0.2022, allocations: 27.95 kB / 420 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006745/0.2089, allocations: 6.315 MB / 426.3 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.209, allocations: 4.031 kB / 426.3 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004725/0.2137, allocations: 3.233 MB / 429.6 MB, free: 7.609 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003534/0.2141, allocations: 204.2 kB / 429.8 MB, free: 7.391 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001166/0.2142, allocations: 20 kB / 429.8 MB, free: 7.371 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001661/0.2159, allocations: 271.6 kB / 430 MB, free: 7.105 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001413/0.2173, allocations: 0.5694 MB / 430.6 MB, free: 6.535 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.007e-05/0.2174, allocations: 27.97 kB / 430.6 MB, free: 6.508 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008063/0.2182, allocations: 0.6748 MB / 431.3 MB, free: 5.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.71e-07/0.2182, allocations: 0 / 431.3 MB, free: 5.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009721/0.2192, allocations: 184 kB / 431.5 MB, free: 5.66 MB / 366.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.0003645/0.2196, allocations: 163.1 kB / 431.6 MB, free: 5.492 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003399/0.223, allocations: 1.914 MB / 433.6 MB, free: 3.551 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/0.223, allocations: 4 kB / 433.6 MB, free: 3.547 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001971/0.225, allocations: 1.083 MB / 434.6 MB, free: 2.438 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006954/0.2257, allocations: 71.14 kB / 434.7 MB, free: 2.367 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004358/0.2301, allocations: 1.963 MB / 436.7 MB, free: 376 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000684/0.2308, allocations: 0.9182 MB / 437.6 MB, free: 15.43 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002987/0.2311, allocations: 47.27 kB / 437.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001303/0.2312, allocations: 39.42 kB / 437.7 MB, free: 15.34 MB / 382.1 MB Notification: Performance of SimCode: time 7.51e-07/0.2312, allocations: 0 / 437.7 MB, free: 15.34 MB / 382.1 MB Notification: Performance of Templates: time 0.2436/0.4748, allocations: 24.37 MB / 462.1 MB, free: 73.91 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1)