Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.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.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009132/0.0009131, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.001015/0.001015, allocations: 184.2 kB / 17.57 MB, free: 6.199 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.459/1.459, allocations: 205.4 MB / 223.7 MB, free: 13.07 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.0008378/0.0008379, allocations: 8 kB / 280.7 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1227, allocations: 47.59 MB / 328.3 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003543/0.1263, allocations: 2.684 MB / 331 MB, free: 1.062 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002215/0.1286, allocations: 0.9747 MB / 332 MB, free: 80 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002735/0.1289, allocations: 11.94 kB / 332 MB, free: 68 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002519/0.1292, allocations: 47.62 kB / 332 MB, free: 20 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004547/0.1296, allocations: 111.1 kB / 332.1 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005997/0.1302, allocations: 187.7 kB / 332.3 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007605/0.131, allocations: 0.6044 MB / 332.9 MB, free: 15.12 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002583/0.1313, allocations: 107.9 kB / 333 MB, free: 15.01 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004964/0.1318, allocations: 243 kB / 333.3 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005715/0.1324, allocations: 274.9 kB / 333.5 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001125/0.1325, allocations: 28 kB / 333.6 MB, free: 14.47 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002719/0.1328, allocations: 71.89 kB / 333.6 MB, free: 14.4 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001807/0.133, allocations: 95.64 kB / 333.7 MB, free: 14.31 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003698/0.1334, allocations: 252.5 kB / 334 MB, free: 14.05 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000795/0.1342, allocations: 0.5451 MB / 334.5 MB, free: 13.51 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.1342, allocations: 0 / 334.5 MB, free: 13.51 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.187e-06/0.1342, allocations: 11.98 kB / 334.5 MB, free: 13.5 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.588e-05/0.1342, allocations: 0 / 334.5 MB, free: 13.5 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001823/0.1361, allocations: 0.7136 MB / 335.2 MB, free: 12.73 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.1361, allocations: 8.031 kB / 335.3 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001526/0.1363, allocations: 52.28 kB / 335.3 MB, free: 12.68 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004915/0.1368, allocations: 327.3 kB / 335.6 MB, free: 12.31 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.16e-05/0.1368, allocations: 33.31 kB / 335.7 MB, free: 12.28 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.1369, allocations: 44.28 kB / 335.7 MB, free: 12.23 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009529/0.1379, allocations: 486.6 kB / 336.2 MB, free: 11.75 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/0.1379, allocations: 4 kB / 336.2 MB, free: 11.75 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.804e-05/0.138, allocations: 16 kB / 336.2 MB, free: 11.73 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.138, allocations: 8 kB / 336.2 MB, free: 11.73 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001032/0.139, allocations: 487.7 kB / 336.7 MB, free: 11.25 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002276/0.1413, allocations: 1.164 MB / 337.8 MB, free: 10.03 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007915/0.1421, allocations: 400.4 kB / 338.2 MB, free: 9.633 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005389/0.1427, allocations: 278 kB / 338.5 MB, free: 9.359 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.871e-05/0.1427, allocations: 8.422 kB / 338.5 MB, free: 9.352 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.52e-05/0.1428, allocations: 43 kB / 338.6 MB, free: 9.301 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 1.953e-06/0.1428, allocations: 0 / 338.6 MB, free: 9.301 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.005287/0.1481, allocations: 2.452 MB / 341 MB, free: 6.719 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.863e-05/0.1482, allocations: 55.97 kB / 341.1 MB, free: 6.652 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002944/0.1485, allocations: 283.3 kB / 341.3 MB, free: 6.371 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.372e-05/0.1485, allocations: 53.69 kB / 341.4 MB, free: 6.312 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.1487, allocations: 181.3 kB / 341.6 MB, free: 6.133 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001605/0.1488, allocations: 197.3 kB / 341.8 MB, free: 5.938 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.797e-05/0.1489, allocations: 53.69 kB / 341.8 MB, free: 5.879 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.1491, allocations: 346.8 kB / 342.2 MB, free: 5.531 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004736/0.1495, allocations: 249.2 kB / 342.4 MB, free: 5.289 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004999/0.1501, allocations: 296.8 kB / 342.7 MB, free: 4.992 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008082/0.1509, allocations: 430.3 kB / 343.1 MB, free: 4.566 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1509, allocations: 3.938 kB / 343.1 MB, free: 4.562 MB / 286.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001607/0.1525, allocations: 0.799 MB / 343.9 MB, free: 3.75 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.1525, allocations: 4 kB / 343.9 MB, free: 3.746 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.1525, allocations: 0 / 343.9 MB, free: 3.746 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008817/0.1534, allocations: 0.5013 MB / 344.4 MB, free: 3.238 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003389/0.1538, allocations: 91.89 kB / 344.5 MB, free: 3.148 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001272/0.1551, allocations: 1.409 MB / 345.9 MB, free: 1.688 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005235/0.1556, allocations: 100 kB / 346 MB, free: 1.59 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.39e-05/0.1557, allocations: 23.92 kB / 346 MB, free: 1.566 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,8), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002336/0.1559, allocations: 177.3 kB / 346.2 MB, free: 1.383 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.692e-05/0.156, allocations: 43.53 kB / 346.2 MB, free: 1.34 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001402/0.1561, allocations: 55.73 kB / 346.3 MB, free: 1.281 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.1561, allocations: 4 kB / 346.3 MB, free: 1.277 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.1561, allocations: 0 / 346.3 MB, free: 1.277 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.423e-06/0.1562, allocations: 3.984 kB / 346.3 MB, free: 1.273 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002723/0.1589, allocations: 1.489 MB / 347.8 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.543e-06/0.1589, allocations: 7.938 kB / 347.8 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003533/0.1593, allocations: 83.83 kB / 347.9 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007442/0.16, allocations: 489.5 kB / 348.4 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.559e-05/0.1601, allocations: 19.98 kB / 348.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001187/0.1613, allocations: 1.378 MB / 349.8 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.1613, allocations: 128 / 349.8 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002023/0.1633, allocations: 1.107 MB / 350.9 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001999/0.1635, allocations: 164.6 kB / 351 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.976e-05/0.1636, allocations: 23.94 kB / 351.1 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004292/0.1641, allocations: 79.92 kB / 351.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002072/0.1643, allocations: 88.41 kB / 351.2 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.607e-05/0.1643, allocations: 35.97 kB / 351.3 MB, free: 12.13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001808/0.1645, allocations: 201.9 kB / 351.5 MB, free: 11.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1645, allocations: 4 kB / 351.5 MB, free: 11.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004679/0.165, allocations: 136 kB / 351.6 MB, free: 11.79 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002139/0.1652, allocations: 131.2 kB / 351.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001275/0.1665, allocations: 0.6044 MB / 352.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1665, allocations: 0 / 352.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006855/0.1672, allocations: 350.6 kB / 352.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006231/0.1678, allocations: 80.23 kB / 352.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003843/0.1717, allocations: 1.82 MB / 354.6 MB, free: 8.781 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003866/0.1721, allocations: 0.8205 MB / 355.4 MB, free: 7.938 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001699/0.1723, allocations: 43.28 kB / 355.4 MB, free: 7.891 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.554e-05/0.1724, allocations: 35.42 kB / 355.5 MB, free: 7.855 MB / 302.1 MB Notification: Performance of SimCode: time 8.41e-07/0.1724, allocations: 0 / 355.5 MB, free: 7.855 MB / 302.1 MB Notification: Performance of Templates: time 0.01477/0.1872, allocations: 9.231 MB / 364.7 MB, free: 14.61 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1)