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.001372/0.001372, allocations: 107.3 kB / 16.92 MB, free: 6.145 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.001325/0.001325, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.415/1.415, allocations: 205.1 MB / 223.7 MB, free: 12.31 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.001174/0.001174, allocations: 51.86 kB / 280 MB, free: 3.184 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09974/0.1009, allocations: 46.63 MB / 326.6 MB, free: 4.48 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004098/0.1051, allocations: 2.72 MB / 329.3 MB, free: 1.734 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002089/0.1072, allocations: 1.128 MB / 330.5 MB, free: 0.5977 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001572/0.1074, allocations: 4 kB / 330.5 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002407/0.1076, allocations: 75.36 kB / 330.5 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005673/0.1082, allocations: 186.9 kB / 330.7 MB, free: 344 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004231/0.1086, allocations: 251.5 kB / 331 MB, free: 92 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005764/0.1092, allocations: 0.643 MB / 331.6 MB, free: 15.44 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002288/0.1095, allocations: 123.4 kB / 331.7 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003655/0.1098, allocations: 295.2 kB / 332 MB, free: 15.03 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000386/0.1102, allocations: 338.9 kB / 332.4 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.662e-05/0.1103, allocations: 55.94 kB / 332.4 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002469/0.1106, allocations: 135.9 kB / 332.5 MB, free: 14.51 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001709/0.1108, allocations: 143.5 kB / 332.7 MB, free: 14.37 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002421/0.111, allocations: 254.8 kB / 332.9 MB, free: 14.12 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005966/0.1116, allocations: 0.6272 MB / 333.6 MB, free: 13.49 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.1116, allocations: 0 / 333.6 MB, free: 13.49 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1116, allocations: 3.938 kB / 333.6 MB, free: 13.48 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.306e-06/0.1116, allocations: 0 / 333.6 MB, free: 13.48 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.00155/0.1132, allocations: 0.7993 MB / 334.4 MB, free: 12.63 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.1132, allocations: 15.89 kB / 334.4 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003353/0.1136, allocations: 64.34 kB / 334.4 MB, free: 12.55 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000526/0.1141, allocations: 358.4 kB / 334.8 MB, free: 12.16 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001272/0.1143, allocations: 101 kB / 334.9 MB, free: 12.05 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.538e-05/0.1144, allocations: 40.38 kB / 334.9 MB, free: 12.02 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009908/0.1154, allocations: 0.5645 MB / 335.5 MB, free: 11.44 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.929e-05/0.1154, allocations: 3.984 kB / 335.5 MB, free: 11.43 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.223e-05/0.1154, allocations: 16 kB / 335.5 MB, free: 11.42 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.1155, allocations: 12 kB / 335.5 MB, free: 11.41 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001305/0.1168, allocations: 0.6285 MB / 336.1 MB, free: 10.78 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00231/0.1191, allocations: 1.299 MB / 337.4 MB, free: 9.422 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.1202, allocations: 0.5404 MB / 338 MB, free: 8.875 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006169/0.1208, allocations: 322.4 kB / 338.3 MB, free: 8.559 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.71e-05/0.1209, allocations: 12.48 kB / 338.3 MB, free: 8.547 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.449e-05/0.1209, allocations: 43.11 kB / 338.4 MB, free: 8.492 MB / 286.1 MB Notification: Performance of pre-optimization done (n=61): time 1.943e-06/0.1209, allocations: 0 / 338.4 MB, free: 8.492 MB / 286.1 MB Notification: Performance of matching and sorting (n=69): time 0.006716/0.1277, allocations: 2.864 MB / 341.2 MB, free: 5.508 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.979e-05/0.1278, allocations: 93.55 kB / 341.3 MB, free: 5.398 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003792/0.1281, allocations: 334.9 kB / 341.6 MB, free: 5.059 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.469e-05/0.1282, allocations: 45.7 kB / 341.7 MB, free: 5.008 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.1283, allocations: 161.6 kB / 341.8 MB, free: 4.848 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001739/0.1285, allocations: 228.7 kB / 342.1 MB, free: 4.621 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000187/0.1287, allocations: 122.2 kB / 342.2 MB, free: 4.496 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.1288, allocations: 350.8 kB / 342.5 MB, free: 4.145 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006185/0.1294, allocations: 289.2 kB / 342.8 MB, free: 3.863 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006242/0.1301, allocations: 358.4 kB / 343.2 MB, free: 3.5 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001114/0.1312, allocations: 0.5187 MB / 343.7 MB, free: 2.973 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1312, allocations: 3.938 kB / 343.7 MB, free: 2.969 MB / 286.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001693/0.1329, allocations: 0.885 MB / 344.6 MB, free: 2.074 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.1329, allocations: 7.938 kB / 344.6 MB, free: 2.066 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.133, allocations: 0 / 344.6 MB, free: 2.066 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001053/0.134, allocations: 481.6 kB / 345 MB, free: 1.594 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003532/0.1344, allocations: 83.88 kB / 345.1 MB, free: 1.512 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001319/0.1357, allocations: 1.075 MB / 346.2 MB, free: 420 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004504/0.1362, allocations: 60 kB / 346.3 MB, free: 360 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.925e-05/0.1363, allocations: 28.05 kB / 346.3 MB, free: 332 kB / 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.0002442/0.1365, allocations: 185.4 kB / 346.5 MB, free: 136 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.1366, allocations: 39.53 kB / 346.5 MB, free: 96 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001591/0.1368, allocations: 67.77 kB / 346.6 MB, free: 24 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.914e-06/0.1368, allocations: 8 kB / 346.6 MB, free: 16 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.1368, allocations: 4 kB / 346.6 MB, free: 12 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.707e-06/0.1368, allocations: 3.984 kB / 346.6 MB, free: 8 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003198/0.14, allocations: 1.758 MB / 348.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.1401, allocations: 0 / 348.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003545/0.1404, allocations: 75.88 kB / 348.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00102/0.1414, allocations: 456.5 kB / 348.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.656e-05/0.1415, allocations: 19.98 kB / 348.9 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001204/0.1427, allocations: 1.036 MB / 349.9 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.1427, allocations: 0 / 349.9 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002447/0.1452, allocations: 1.305 MB / 351.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002219/0.1454, allocations: 180.6 kB / 351.4 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.351e-05/0.1455, allocations: 20 kB / 351.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004345/0.146, allocations: 52 kB / 351.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001813/0.1461, allocations: 84.42 kB / 351.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.677e-05/0.1462, allocations: 23.98 kB / 351.6 MB, free: 10.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002801/0.1465, allocations: 245.9 kB / 351.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1465, allocations: 0 / 351.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005063/0.147, allocations: 144 kB / 352 MB, free: 10.5 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.0002986/0.1473, allocations: 155.1 kB / 352.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001733/0.1491, allocations: 0.7469 MB / 352.9 MB, free: 9.594 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1491, allocations: 0 / 352.9 MB, free: 9.594 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008348/0.1499, allocations: 392.2 kB / 353.2 MB, free: 9.207 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004959/0.1504, allocations: 58.12 kB / 353.3 MB, free: 9.152 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002501/0.1529, allocations: 1.118 MB / 354.4 MB, free: 8.004 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003837/0.1533, allocations: 0.8173 MB / 355.2 MB, free: 7.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002287/0.1536, allocations: 67.33 kB / 355.3 MB, free: 7.094 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001273/0.1537, allocations: 39.42 kB / 355.3 MB, free: 7.055 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1537, allocations: 0 / 355.3 MB, free: 7.055 MB / 302.1 MB Notification: Performance of Templates: time 0.01586/0.1696, allocations: 9.935 MB / 365.3 MB, free: 13.12 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)