Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 105.2 kB / 16.51 MB, free: 6.715 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.001077/0.001077, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.513/1.513, allocations: 205.1 MB / 223.3 MB, free: 12.48 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.001486/0.001486, allocations: 43.92 kB / 279.3 MB, free: 3.586 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.116, allocations: 46.63 MB / 326 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.005059/0.1211, allocations: 2.765 MB / 328.7 MB, free: 2.105 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002765/0.1239, allocations: 1.128 MB / 329.9 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004648/0.1244, allocations: 7.938 kB / 329.9 MB, free: 0.9609 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003885/0.1249, allocations: 51.69 kB / 329.9 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008613/0.1258, allocations: 159.2 kB / 330.1 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006717/0.1265, allocations: 211.7 kB / 330.3 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001048/0.1275, allocations: 0.6157 MB / 330.9 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003821/0.1279, allocations: 112 kB / 331 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008768/0.1288, allocations: 267 kB / 331.3 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007872/0.1296, allocations: 330.9 kB / 331.6 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.083e-05/0.1297, allocations: 28 kB / 331.6 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003146/0.13, allocations: 111.9 kB / 331.7 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002112/0.1303, allocations: 123.6 kB / 331.8 MB, free: 14.97 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003172/0.1306, allocations: 230.8 kB / 332.1 MB, free: 14.74 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007602/0.1314, allocations: 0.627 MB / 332.7 MB, free: 14.11 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.1314, allocations: 0 / 332.7 MB, free: 14.11 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1314, allocations: 0 / 332.7 MB, free: 14.11 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.163e-05/0.1314, allocations: 0 / 332.7 MB, free: 14.11 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.002132/0.1335, allocations: 0.7876 MB / 333.5 MB, free: 13.27 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.863e-05/0.1336, allocations: 16.03 kB / 333.5 MB, free: 13.26 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004254/0.134, allocations: 68.33 kB / 333.6 MB, free: 13.19 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006422/0.1347, allocations: 362.4 kB / 333.9 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001558/0.1349, allocations: 100.9 kB / 334 MB, free: 12.69 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.143e-05/0.135, allocations: 40.38 kB / 334.1 MB, free: 12.65 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001132/0.1361, allocations: 0.5606 MB / 334.6 MB, free: 12.08 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.197e-05/0.1361, allocations: 0 / 334.6 MB, free: 12.08 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.427e-05/0.1362, allocations: 20 kB / 334.6 MB, free: 12.06 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.1362, allocations: 12 kB / 334.6 MB, free: 12.05 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001368/0.1376, allocations: 0.6324 MB / 335.3 MB, free: 11.41 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002333/0.14, allocations: 1.291 MB / 336.6 MB, free: 10.07 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.1411, allocations: 0.5404 MB / 337.1 MB, free: 9.52 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006212/0.1418, allocations: 334.5 kB / 337.4 MB, free: 9.191 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.488e-05/0.1418, allocations: 12.5 kB / 337.4 MB, free: 9.176 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.72e-05/0.1419, allocations: 39.12 kB / 337.5 MB, free: 9.129 MB / 286.1 MB Notification: Performance of pre-optimization done (n=61): time 2.484e-06/0.1419, allocations: 0 / 337.5 MB, free: 9.129 MB / 286.1 MB Notification: Performance of matching and sorting (n=69): time 0.007082/0.149, allocations: 2.852 MB / 340.3 MB, free: 6.156 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.32e-05/0.149, allocations: 93.55 kB / 340.4 MB, free: 6.047 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004703/0.1495, allocations: 338.9 kB / 340.8 MB, free: 5.699 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.029e-05/0.1496, allocations: 41.7 kB / 340.8 MB, free: 5.652 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001365/0.1497, allocations: 161.6 kB / 341 MB, free: 5.492 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002125/0.15, allocations: 228.8 kB / 341.2 MB, free: 5.266 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000239/0.1502, allocations: 122.2 kB / 341.3 MB, free: 5.141 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.1504, allocations: 350.8 kB / 341.6 MB, free: 4.789 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006413/0.151, allocations: 293.2 kB / 341.9 MB, free: 4.504 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006709/0.1517, allocations: 350.4 kB / 342.3 MB, free: 4.148 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001103/0.1528, allocations: 0.5265 MB / 342.8 MB, free: 3.617 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.1528, allocations: 0 / 342.8 MB, free: 3.617 MB / 286.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001769/0.1546, allocations: 0.8851 MB / 343.7 MB, free: 2.723 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.401e-05/0.1546, allocations: 7.938 kB / 343.7 MB, free: 2.715 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.1547, allocations: 4 kB / 343.7 MB, free: 2.711 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001121/0.1558, allocations: 469.6 kB / 344.2 MB, free: 2.25 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003745/0.1562, allocations: 87.88 kB / 344.2 MB, free: 2.164 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001338/0.1575, allocations: 1.083 MB / 345.3 MB, free: 1.055 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004919/0.158, allocations: 55.94 kB / 345.4 MB, free: 1 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.98e-05/0.1581, allocations: 31.98 kB / 345.4 MB, free: 0.9688 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0003367/0.1585, allocations: 177.7 kB / 345.6 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/0.1586, allocations: 43.59 kB / 345.6 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001858/0.1588, allocations: 67.77 kB / 345.7 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/0.1588, allocations: 8 kB / 345.7 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.387e-05/0.1589, allocations: 0 / 345.7 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.1589, allocations: 3.984 kB / 345.7 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003719/0.1626, allocations: 1.758 MB / 347.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.1626, allocations: 0 / 347.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003917/0.163, allocations: 79.88 kB / 347.5 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001122/0.1642, allocations: 448.5 kB / 348 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.201e-05/0.1642, allocations: 23.98 kB / 348 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001329/0.1656, allocations: 1.044 MB / 349 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/0.1656, allocations: 0 / 349 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002606/0.1682, allocations: 1.301 MB / 350.3 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000321/0.1685, allocations: 180.5 kB / 350.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000124/0.1687, allocations: 20 kB / 350.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004545/0.1691, allocations: 56 kB / 350.6 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002353/0.1694, allocations: 80.42 kB / 350.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.547e-05/0.1694, allocations: 27.97 kB / 350.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003485/0.1698, allocations: 241.9 kB / 350.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.82e-07/0.1698, allocations: 0 / 350.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006177/0.1704, allocations: 148 kB / 351.1 MB, free: 11.14 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003652/0.1708, allocations: 155 kB / 351.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001784/0.1726, allocations: 0.7002 MB / 351.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.1726, allocations: 0 / 351.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009001/0.1735, allocations: 396.1 kB / 352.3 MB, free: 9.891 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006097/0.1742, allocations: 52.88 kB / 352.4 MB, free: 9.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002613/0.1768, allocations: 1.29 MB / 353.7 MB, free: 8.516 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004249/0.1772, allocations: 0.8212 MB / 354.5 MB, free: 7.672 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002552/0.1775, allocations: 67.33 kB / 354.5 MB, free: 7.605 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001422/0.1776, allocations: 31.42 kB / 354.6 MB, free: 7.574 MB / 302.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1776, allocations: 0 / 354.6 MB, free: 7.574 MB / 302.1 MB Notification: Performance of Templates: time 0.01725/0.1949, allocations: 9.327 MB / 363.9 MB, free: 14.24 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)