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.001114/0.001114, allocations: 90.03 kB / 16.31 MB, free: 5.539 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.001028/0.001028, allocations: 183.6 kB / 17.21 MB, free: 5.457 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.508/1.508, allocations: 205.4 MB / 223.4 MB, free: 13.14 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.0008902/0.0008907, allocations: 22.95 kB / 280.1 MB, free: 3.723 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.117, allocations: 47.57 MB / 327.7 MB, free: 4.074 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003421/0.1204, allocations: 2.577 MB / 330.3 MB, free: 1.48 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001874/0.1223, allocations: 0.9321 MB / 331.2 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003046/0.1227, allocations: 15.94 kB / 331.2 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002944/0.123, allocations: 43.62 kB / 331.3 MB, free: 492 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000319/0.1233, allocations: 107.1 kB / 331.4 MB, free: 384 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005378/0.1239, allocations: 179.6 kB / 331.6 MB, free: 204 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007086/0.1246, allocations: 0.5615 MB / 332.1 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002398/0.1248, allocations: 110.2 kB / 332.2 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004194/0.1253, allocations: 239.1 kB / 332.5 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004135/0.1257, allocations: 263 kB / 332.7 MB, free: 15.03 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.896e-05/0.1258, allocations: 28 kB / 332.8 MB, free: 15 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001921/0.126, allocations: 63.95 kB / 332.8 MB, free: 14.94 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000129/0.1261, allocations: 99.62 kB / 332.9 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001256/0.1263, allocations: 97.45 kB / 333 MB, free: 14.74 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004468/0.1267, allocations: 419.1 kB / 333.4 MB, free: 14.33 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1267, allocations: 0 / 333.4 MB, free: 14.33 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1267, allocations: 0 / 333.4 MB, free: 14.33 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.693e-05/0.1268, allocations: 4 kB / 333.4 MB, free: 14.32 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.001374/0.1282, allocations: 0.725 MB / 334.1 MB, free: 13.55 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.226e-05/0.1282, allocations: 16.03 kB / 334.2 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000115/0.1283, allocations: 55.28 kB / 334.2 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004049/0.1288, allocations: 314.2 kB / 334.5 MB, free: 13.13 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.611e-05/0.1288, allocations: 29 kB / 334.6 MB, free: 13.1 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.43e-05/0.1289, allocations: 43.89 kB / 334.6 MB, free: 13.06 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000905/0.1298, allocations: 474.3 kB / 335.1 MB, free: 12.59 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.147e-05/0.1298, allocations: 8 kB / 335.1 MB, free: 12.58 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.291e-05/0.1299, allocations: 16 kB / 335.1 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.334e-05/0.1299, allocations: 11.98 kB / 335.1 MB, free: 12.55 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009645/0.1309, allocations: 487.6 kB / 335.6 MB, free: 12.08 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002012/0.1329, allocations: 1.153 MB / 336.7 MB, free: 10.87 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007984/0.1337, allocations: 404.9 kB / 337.1 MB, free: 10.47 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005076/0.1342, allocations: 270.1 kB / 337.4 MB, free: 10.2 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.852e-05/0.1343, allocations: 8.438 kB / 337.4 MB, free: 10.2 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.1343, allocations: 46.89 kB / 337.4 MB, free: 10.14 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 3.256e-06/0.1343, allocations: 0 / 337.4 MB, free: 10.14 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.004978/0.1393, allocations: 2.44 MB / 339.9 MB, free: 7.57 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.98e-05/0.1394, allocations: 59.97 kB / 339.9 MB, free: 7.5 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002896/0.1397, allocations: 279.3 kB / 340.2 MB, free: 7.219 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.941e-05/0.1397, allocations: 45.7 kB / 340.3 MB, free: 7.168 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.1399, allocations: 189.2 kB / 340.4 MB, free: 6.98 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001516/0.14, allocations: 189.4 kB / 340.6 MB, free: 6.793 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.483e-05/0.1401, allocations: 12 kB / 340.6 MB, free: 6.781 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.1402, allocations: 346.8 kB / 341 MB, free: 6.434 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004696/0.1407, allocations: 241.2 kB / 341.2 MB, free: 6.199 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004914/0.1412, allocations: 300.7 kB / 341.5 MB, free: 5.898 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004011/0.1416, allocations: 211.2 kB / 341.7 MB, free: 5.695 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1416, allocations: 3.938 kB / 341.7 MB, free: 5.691 MB / 286.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001393/0.143, allocations: 0.7445 MB / 342.5 MB, free: 4.934 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.143, allocations: 12.03 kB / 342.5 MB, free: 4.922 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/0.1431, allocations: 3.984 kB / 342.5 MB, free: 4.918 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000933/0.144, allocations: 0.4973 MB / 343 MB, free: 4.414 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003487/0.1444, allocations: 91.89 kB / 343.1 MB, free: 4.324 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001347/0.1457, allocations: 1.409 MB / 344.5 MB, free: 2.863 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004805/0.1462, allocations: 100 kB / 344.6 MB, free: 2.766 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.837e-05/0.1463, allocations: 16 kB / 344.6 MB, free: 2.75 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 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 8,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002566/0.1465, allocations: 181.5 kB / 344.8 MB, free: 2.562 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.72e-05/0.1466, allocations: 43.52 kB / 344.8 MB, free: 2.52 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001722/0.1468, allocations: 59.73 kB / 344.9 MB, free: 2.457 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.167e-06/0.1468, allocations: 8 kB / 344.9 MB, free: 2.449 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.1468, allocations: 0 / 344.9 MB, free: 2.449 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.1468, allocations: 3.984 kB / 344.9 MB, free: 2.445 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002696/0.1495, allocations: 1.485 MB / 346.4 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.1496, allocations: 0 / 346.4 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004141/0.15, allocations: 92.05 kB / 346.4 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007728/0.1508, allocations: 481.3 kB / 346.9 MB, free: 320 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.276e-05/0.1508, allocations: 19.97 kB / 346.9 MB, free: 300 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001138/0.152, allocations: 1.374 MB / 348.3 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.152, allocations: 4.031 kB / 348.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001909/0.1539, allocations: 1.104 MB / 349.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00021/0.1541, allocations: 160.6 kB / 349.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.693e-05/0.1542, allocations: 23.94 kB / 349.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004023/0.1546, allocations: 84.06 kB / 349.7 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002207/0.1549, allocations: 112.3 kB / 349.8 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.27e-05/0.1549, allocations: 27.92 kB / 349.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001982/0.1551, allocations: 201.9 kB / 350 MB, free: 13.1 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1551, allocations: 0 / 350 MB, free: 13.1 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004769/0.1556, allocations: 132 kB / 350.1 MB, free: 12.97 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002273/0.1559, allocations: 143 kB / 350.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001207/0.1571, allocations: 0.5928 MB / 350.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1571, allocations: 0 / 350.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006705/0.1578, allocations: 354.7 kB / 351.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005474/0.1583, allocations: 67.98 kB / 351.3 MB, free: 11.83 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003565/0.1619, allocations: 1.769 MB / 353.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000396/0.1623, allocations: 0.8243 MB / 353.9 MB, free: 9.172 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001764/0.1625, allocations: 43.27 kB / 353.9 MB, free: 9.125 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.696e-05/0.1626, allocations: 39.42 kB / 354 MB, free: 9.086 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1626, allocations: 0 / 354 MB, free: 9.086 MB / 302.1 MB Notification: Performance of Templates: time 0.01568/0.1783, allocations: 8.968 MB / 362.9 MB, free: 116 kB / 302.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)