Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="Modelica_3.1_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.007065/0.007065, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001204/0.001204, allocations: 195 kB / 16.67 MB, free: 5.977 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.495/1.495, allocations: 205.1 MB / 222.6 MB, free: 4.508 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.001226/0.001226, allocations: 50.23 kB / 326.5 MB, free: 14.33 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1219, allocations: 46.62 MB / 373.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005116/0.1271, allocations: 3.028 MB / 376.2 MB, free: 14.28 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002198/0.1294, allocations: 0.9746 MB / 377.2 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002155/0.1296, allocations: 7.938 kB / 377.2 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002938/0.1299, allocations: 75.31 kB / 377.2 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002731/0.1302, allocations: 126.9 kB / 377.4 MB, free: 13.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006157/0.1308, allocations: 215.6 kB / 377.6 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006403/0.1315, allocations: 0.6434 MB / 378.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002583/0.1318, allocations: 140.2 kB / 378.4 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003199/0.1321, allocations: 271.1 kB / 378.6 MB, free: 11.83 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003666/0.1325, allocations: 298.9 kB / 378.9 MB, free: 11.54 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.229e-05/0.1326, allocations: 48 kB / 379 MB, free: 11.49 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002068/0.1328, allocations: 103.9 kB / 379.1 MB, free: 11.39 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001593/0.1329, allocations: 123.6 kB / 379.2 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002506/0.1332, allocations: 258.7 kB / 379.4 MB, free: 11.01 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007168/0.1339, allocations: 0.5876 MB / 380 MB, free: 10.42 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.1339, allocations: 0 / 380 MB, free: 10.42 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1339, allocations: 0 / 380 MB, free: 10.42 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.177e-06/0.134, allocations: 0 / 380 MB, free: 10.42 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001532/0.1355, allocations: 0.8063 MB / 380.8 MB, free: 9.566 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.1356, allocations: 8.031 kB / 380.8 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/0.1357, allocations: 48.66 kB / 380.9 MB, free: 9.512 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005297/0.1362, allocations: 335.5 kB / 381.2 MB, free: 9.145 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.793e-05/0.1363, allocations: 37.36 kB / 381.3 MB, free: 9.105 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.376e-05/0.1363, allocations: 36.38 kB / 381.3 MB, free: 9.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008613/0.1372, allocations: 478.6 kB / 381.8 MB, free: 8.598 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.605e-05/0.1372, allocations: 11.94 kB / 381.8 MB, free: 8.586 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.762e-05/0.1373, allocations: 19.94 kB / 381.8 MB, free: 8.566 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.285e-05/0.1373, allocations: 8 kB / 381.8 MB, free: 8.559 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009256/0.1382, allocations: 475.7 kB / 382.3 MB, free: 8.094 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002065/0.1403, allocations: 1.106 MB / 383.4 MB, free: 6.934 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008179/0.1412, allocations: 396.3 kB / 383.8 MB, free: 6.539 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005325/0.1417, allocations: 270 kB / 384 MB, free: 6.273 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.084e-05/0.1418, allocations: 4.438 kB / 384 MB, free: 6.266 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.959e-05/0.1418, allocations: 39 kB / 384.1 MB, free: 6.219 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.444e-06/0.1418, allocations: 0 / 384.1 MB, free: 6.219 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.00498/0.1468, allocations: 2.339 MB / 386.4 MB, free: 3.75 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.547e-05/0.1469, allocations: 59.97 kB / 386.5 MB, free: 3.68 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002893/0.1472, allocations: 291.2 kB / 386.7 MB, free: 3.383 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.885e-05/0.1472, allocations: 45.7 kB / 386.8 MB, free: 3.332 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001289/0.1474, allocations: 189.6 kB / 387 MB, free: 3.141 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001498/0.1475, allocations: 198.4 kB / 387.2 MB, free: 2.945 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001861/0.1477, allocations: 106.3 kB / 387.3 MB, free: 2.836 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.1479, allocations: 354.7 kB / 387.6 MB, free: 2.48 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004636/0.1483, allocations: 245.2 kB / 387.9 MB, free: 2.242 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000519/0.1489, allocations: 288.8 kB / 388.1 MB, free: 1.953 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007698/0.1496, allocations: 410.4 kB / 388.5 MB, free: 1.547 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1496, allocations: 0 / 388.5 MB, free: 1.547 MB / 318.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001624/0.1513, allocations: 0.7874 MB / 389.3 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.1513, allocations: 4 kB / 389.3 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.1513, allocations: 8.031 kB / 389.3 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009872/0.1523, allocations: 0.5012 MB / 389.8 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003363/0.1527, allocations: 91.83 kB / 389.9 MB, free: 140 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001393/0.1541, allocations: 1.401 MB / 391.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004756/0.1546, allocations: 75.94 kB / 391.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.788e-05/0.1546, allocations: 19.98 kB / 391.4 MB, free: 14.59 MB / 334.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.0002498/0.1549, allocations: 185.5 kB / 391.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.712e-05/0.155, allocations: 39.72 kB / 391.6 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001326/0.1551, allocations: 59.73 kB / 391.7 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.1551, allocations: 8 kB / 391.7 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.1551, allocations: 3.984 kB / 391.7 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.1552, allocations: 0 / 391.7 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0028/0.158, allocations: 1.456 MB / 393.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.999e-06/0.158, allocations: 7.938 kB / 393.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000356/0.1583, allocations: 87.89 kB / 393.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008297/0.1592, allocations: 481.5 kB / 393.7 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.177e-05/0.1593, allocations: 19.98 kB / 393.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001275/0.1605, allocations: 1.386 MB / 395.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.1606, allocations: 3.938 kB / 395.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00209/0.1626, allocations: 1.085 MB / 396.2 MB, free: 9.602 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002377/0.1629, allocations: 172.8 kB / 396.4 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.755e-05/0.163, allocations: 19.94 kB / 396.4 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003992/0.1634, allocations: 59.92 kB / 396.5 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002196/0.1636, allocations: 96.23 kB / 396.6 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.079e-05/0.1637, allocations: 31.97 kB / 396.6 MB, free: 9.211 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002172/0.1639, allocations: 194 kB / 396.8 MB, free: 9.023 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1639, allocations: 0 / 396.8 MB, free: 9.023 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005292/0.1645, allocations: 136 kB / 396.9 MB, free: 8.891 MB / 334.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.0002793/0.1647, allocations: 139.1 kB / 397.1 MB, free: 8.742 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001302/0.1661, allocations: 0.5926 MB / 397.7 MB, free: 8.148 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1661, allocations: 96 / 397.7 MB, free: 8.148 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007229/0.1668, allocations: 354.5 kB / 398 MB, free: 7.801 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000595/0.1674, allocations: 68.55 kB / 398.1 MB, free: 7.734 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003663/0.1711, allocations: 1.443 MB / 399.5 MB, free: 6.246 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004299/0.1715, allocations: 0.8201 MB / 400.3 MB, free: 5.402 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00019/0.1717, allocations: 47.25 kB / 400.4 MB, free: 5.359 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.1718, allocations: 35.42 kB / 400.4 MB, free: 5.324 MB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1719, allocations: 4 kB / 400.4 MB, free: 5.32 MB / 334.1 MB Notification: Performance of Templates: time 0.01622/0.1881, allocations: 10.03 MB / 410.4 MB, free: 11.28 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1)