Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 92.12 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.001237/0.001237, allocations: 182.1 kB / 17.56 MB, free: 6.203 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.509/1.509, allocations: 205.4 MB / 223.7 MB, free: 13.09 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.0005134/0.0005133, allocations: 12 kB / 280.7 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09821/0.09874, allocations: 47.59 MB / 328.3 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003082/0.1019, allocations: 2.033 MB / 330.4 MB, free: 1.719 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001963/0.1039, allocations: 0.9492 MB / 331.3 MB, free: 0.7617 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002423/0.1041, allocations: 4 kB / 331.3 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002482/0.1044, allocations: 31.77 kB / 331.3 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006017/0.105, allocations: 111.4 kB / 331.4 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003885/0.1054, allocations: 147.8 kB / 331.6 MB, free: 484 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004953/0.1059, allocations: 398.7 kB / 332 MB, free: 84 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000169/0.1061, allocations: 56.7 kB / 332 MB, free: 28 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003031/0.1064, allocations: 167.4 kB / 332.2 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003668/0.1068, allocations: 203.3 kB / 332.4 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.245e-05/0.1069, allocations: 16 kB / 332.4 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002191/0.1071, allocations: 103.9 kB / 332.5 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001385/0.1072, allocations: 79.72 kB / 332.6 MB, free: 15.47 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001863/0.1074, allocations: 172.9 kB / 332.8 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005/0.1079, allocations: 418.8 kB / 333.2 MB, free: 14.88 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.108, allocations: 0 / 333.2 MB, free: 14.88 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.108, allocations: 0 / 333.2 MB, free: 14.88 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.406e-05/0.108, allocations: 0 / 333.2 MB, free: 14.88 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001245/0.1092, allocations: 0.581 MB / 333.8 MB, free: 14.25 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.1093, allocations: 12.03 kB / 333.8 MB, free: 14.24 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003693/0.1097, allocations: 48.55 kB / 333.8 MB, free: 14.2 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005516/0.1102, allocations: 299.8 kB / 334.1 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001362/0.1104, allocations: 92.45 kB / 334.2 MB, free: 13.76 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.772e-05/0.1105, allocations: 32.28 kB / 334.2 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007551/0.1112, allocations: 385.4 kB / 334.6 MB, free: 13.33 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.49e-05/0.1113, allocations: 7.984 kB / 334.6 MB, free: 13.32 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.144e-05/0.1113, allocations: 8 kB / 334.6 MB, free: 13.32 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.1113, allocations: 8 kB / 334.6 MB, free: 13.31 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009163/0.1123, allocations: 429.9 kB / 335 MB, free: 12.89 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002277/0.1145, allocations: 1.249 MB / 336.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006767/0.1152, allocations: 358.5 kB / 336.6 MB, free: 11.21 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003809/0.1156, allocations: 188.8 kB / 336.8 MB, free: 11.02 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.266e-05/0.1157, allocations: 7.984 kB / 336.8 MB, free: 11.01 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.029e-05/0.1157, allocations: 42.5 kB / 336.9 MB, free: 10.96 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 2.905e-06/0.1157, allocations: 0 / 336.9 MB, free: 10.96 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004994/0.1207, allocations: 1.973 MB / 338.9 MB, free: 8.875 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.963e-05/0.1208, allocations: 84.86 kB / 338.9 MB, free: 8.773 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003121/0.1211, allocations: 238.3 kB / 339.2 MB, free: 8.527 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.599e-05/0.1212, allocations: 37.69 kB / 339.2 MB, free: 8.484 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.1213, allocations: 144.6 kB / 339.3 MB, free: 8.34 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001242/0.1215, allocations: 150 kB / 339.5 MB, free: 8.191 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.437e-05/0.1215, allocations: 41.7 kB / 339.5 MB, free: 8.145 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.1217, allocations: 334.8 kB / 339.9 MB, free: 7.809 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003771/0.1221, allocations: 176.8 kB / 340 MB, free: 7.637 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004158/0.1225, allocations: 233.9 kB / 340.3 MB, free: 7.387 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006942/0.1232, allocations: 351.2 kB / 340.6 MB, free: 7.031 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.1232, allocations: 0 / 340.6 MB, free: 7.031 MB / 286.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00114/0.1243, allocations: 0.5669 MB / 341.2 MB, free: 6.457 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.57e-05/0.1244, allocations: 4 kB / 341.2 MB, free: 6.453 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.504e-05/0.1244, allocations: 3.984 kB / 341.2 MB, free: 6.449 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008133/0.1252, allocations: 248.7 kB / 341.4 MB, free: 6.203 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002608/0.1255, allocations: 59.91 kB / 341.5 MB, free: 6.145 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004325/0.1298, allocations: 2.671 MB / 344.1 MB, free: 3.34 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002841/0.1301, allocations: 31.97 kB / 344.2 MB, free: 3.309 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.13e-05/0.1302, allocations: 12 kB / 344.2 MB, free: 3.297 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0002125/0.1304, allocations: 161.8 kB / 344.3 MB, free: 3.129 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.157e-05/0.1305, allocations: 27.66 kB / 344.4 MB, free: 3.102 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001118/0.1306, allocations: 42.98 kB / 344.4 MB, free: 3.059 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.1306, allocations: 4 kB / 344.4 MB, free: 3.055 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.1306, allocations: 0 / 344.4 MB, free: 3.055 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.1306, allocations: 4 kB / 344.4 MB, free: 3.051 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001841/0.1325, allocations: 1.104 MB / 345.5 MB, free: 1.887 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.1325, allocations: 0 / 345.5 MB, free: 1.887 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002267/0.1327, allocations: 39.97 kB / 345.6 MB, free: 1.848 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006578/0.1334, allocations: 244.8 kB / 345.8 MB, free: 1.605 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.63e-05/0.1334, allocations: 15.98 kB / 345.8 MB, free: 1.59 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003687/0.1371, allocations: 2.593 MB / 348.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/0.1372, allocations: 8.016 kB / 348.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001548/0.1387, allocations: 0.8336 MB / 349.3 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001529/0.1389, allocations: 140.7 kB / 349.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.216e-05/0.1389, allocations: 12 kB / 349.4 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002547/0.1392, allocations: 39.91 kB / 349.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001771/0.1394, allocations: 59.84 kB / 349.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.401e-05/0.1394, allocations: 24.05 kB / 349.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002246/0.1397, allocations: 176.3 kB / 349.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1397, allocations: 0 / 349.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006283/0.1403, allocations: 140 kB / 349.8 MB, free: 13.4 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002659/0.1406, allocations: 127.2 kB / 350 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001429/0.142, allocations: 0.6407 MB / 350.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.142, allocations: 0 / 350.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008305/0.1429, allocations: 437.6 kB / 351 MB, free: 12.17 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004397/0.1433, allocations: 39.91 kB / 351.1 MB, free: 12.13 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001501/0.1448, allocations: 0.8658 MB / 351.9 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004127/0.1453, allocations: 0.7764 MB / 352.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000193/0.1455, allocations: 58.95 kB / 352.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.949e-05/0.1456, allocations: 23.42 kB / 352.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1456, allocations: 0 / 352.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of Templates: time 0.01294/0.1585, allocations: 6.564 MB / 359.4 MB, free: 3.789 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1)