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.001012/0.001012, allocations: 106.8 kB / 16.62 MB, free: 6.812 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.001098/0.001098, allocations: 189.9 kB / 17.55 MB, free: 5.953 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.543/1.543, allocations: 205.1 MB / 223.4 MB, free: 12.45 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.001319/0.001319, allocations: 43.94 kB / 279.5 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1147, allocations: 46.63 MB / 326.1 MB, free: 4.809 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.005457/0.1202, allocations: 2.773 MB / 328.9 MB, free: 2.012 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002226/0.1225, allocations: 1.117 MB / 330 MB, free: 0.8867 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001765/0.1227, allocations: 7.938 kB / 330 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002818/0.123, allocations: 51.69 kB / 330.1 MB, free: 0.8281 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005698/0.1236, allocations: 171.2 kB / 330.2 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004272/0.124, allocations: 211.7 kB / 330.5 MB, free: 464 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006046/0.1246, allocations: 0.6508 MB / 331.1 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002501/0.1249, allocations: 119.4 kB / 331.2 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004089/0.1253, allocations: 299 kB / 331.5 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004123/0.1257, allocations: 342.9 kB / 331.8 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.575e-05/0.1258, allocations: 52 kB / 331.9 MB, free: 15 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002323/0.1261, allocations: 127.9 kB / 332 MB, free: 14.87 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002122/0.1263, allocations: 147.6 kB / 332.2 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002368/0.1265, allocations: 250.8 kB / 332.4 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006844/0.1272, allocations: 0.6389 MB / 333 MB, free: 13.84 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.1272, allocations: 3.938 kB / 333.1 MB, free: 13.84 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1273, allocations: 0 / 333.1 MB, free: 13.84 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.1273, allocations: 0 / 333.1 MB, free: 13.84 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.001716/0.129, allocations: 0.7993 MB / 333.9 MB, free: 12.98 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/0.1291, allocations: 15.89 kB / 333.9 MB, free: 12.97 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003773/0.1294, allocations: 72.3 kB / 333.9 MB, free: 12.9 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005441/0.13, allocations: 358.4 kB / 334.3 MB, free: 12.51 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001558/0.1302, allocations: 100.9 kB / 334.4 MB, free: 12.4 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.752e-05/0.1303, allocations: 40.38 kB / 334.4 MB, free: 12.36 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001172/0.1315, allocations: 0.5606 MB / 335 MB, free: 11.79 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.768e-05/0.1315, allocations: 0 / 335 MB, free: 11.79 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.085e-05/0.1316, allocations: 20 kB / 335 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.375e-05/0.1316, allocations: 8 kB / 335 MB, free: 11.76 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001603/0.1332, allocations: 0.6402 MB / 335.7 MB, free: 11.12 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003148/0.1364, allocations: 1.287 MB / 336.9 MB, free: 9.777 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001343/0.1377, allocations: 0.5445 MB / 337.5 MB, free: 9.227 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000728/0.1385, allocations: 326.3 kB / 337.8 MB, free: 8.906 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.012e-05/0.1386, allocations: 12.5 kB / 337.8 MB, free: 8.895 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.393e-05/0.1386, allocations: 39.12 kB / 337.9 MB, free: 8.844 MB / 286.1 MB Notification: Performance of pre-optimization done (n=61): time 2.244e-06/0.1386, allocations: 0 / 337.9 MB, free: 8.844 MB / 286.1 MB Notification: Performance of matching and sorting (n=69): time 0.007957/0.1466, allocations: 2.867 MB / 340.7 MB, free: 5.855 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001349/0.1468, allocations: 93.55 kB / 340.8 MB, free: 5.746 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005092/0.1473, allocations: 330.9 kB / 341.1 MB, free: 5.406 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.125e-05/0.1474, allocations: 45.69 kB / 341.2 MB, free: 5.355 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001659/0.1475, allocations: 161.6 kB / 341.3 MB, free: 5.195 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002378/0.1478, allocations: 232.7 kB / 341.6 MB, free: 4.965 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002667/0.1481, allocations: 122.2 kB / 341.7 MB, free: 4.84 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002333/0.1483, allocations: 346.8 kB / 342 MB, free: 4.492 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006166/0.1489, allocations: 289.2 kB / 342.3 MB, free: 4.211 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009091/0.1499, allocations: 358.5 kB / 342.7 MB, free: 3.848 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001287/0.1511, allocations: 0.5264 MB / 343.2 MB, free: 3.316 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1512, allocations: 0 / 343.2 MB, free: 3.316 MB / 286.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00188/0.1531, allocations: 0.8812 MB / 344.1 MB, free: 2.426 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.951e-05/0.1531, allocations: 7.938 kB / 344.1 MB, free: 2.418 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.1531, allocations: 0 / 344.1 MB, free: 2.418 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001159/0.1543, allocations: 477.6 kB / 344.5 MB, free: 1.949 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000375/0.1547, allocations: 83.88 kB / 344.6 MB, free: 1.867 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001668/0.1563, allocations: 1.071 MB / 345.7 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004849/0.1568, allocations: 68.02 kB / 345.8 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.131e-05/0.1569, allocations: 23.98 kB / 345.8 MB, free: 0.6797 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.0002937/0.1572, allocations: 177.7 kB / 346 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.1574, allocations: 39.53 kB / 346 MB, free: 468 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002863/0.1576, allocations: 63.77 kB / 346.1 MB, free: 400 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.1577, allocations: 4 kB / 346.1 MB, free: 396 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.441e-05/0.1577, allocations: 3.938 kB / 346.1 MB, free: 392 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.646e-05/0.1577, allocations: 7.984 kB / 346.1 MB, free: 384 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003781/0.1615, allocations: 1.758 MB / 347.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/0.1615, allocations: 4 kB / 347.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003576/0.1619, allocations: 75.92 kB / 347.9 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001124/0.163, allocations: 452.4 kB / 348.4 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.209e-05/0.1631, allocations: 28.03 kB / 348.4 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001454/0.1645, allocations: 1.048 MB / 349.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1646, allocations: 0 / 349.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003088/0.1677, allocations: 1.305 MB / 350.7 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000246/0.1679, allocations: 176.6 kB / 350.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001662/0.1681, allocations: 16 kB / 350.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000431/0.1685, allocations: 56 kB / 351 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002128/0.1687, allocations: 84.42 kB / 351.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.752e-05/0.1688, allocations: 31.97 kB / 351.1 MB, free: 11.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002975/0.1691, allocations: 237.9 kB / 351.3 MB, free: 10.99 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1691, allocations: 0 / 351.3 MB, free: 10.99 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005693/0.1697, allocations: 148 kB / 351.5 MB, free: 10.84 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.0004711/0.1702, allocations: 147.1 kB / 351.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001695/0.1719, allocations: 0.7431 MB / 352.4 MB, free: 9.949 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1719, allocations: 0 / 352.4 MB, free: 9.949 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008063/0.1727, allocations: 396 kB / 352.7 MB, free: 9.559 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005027/0.1732, allocations: 56.94 kB / 352.8 MB, free: 9.504 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00292/0.1762, allocations: 1.286 MB / 354.1 MB, free: 8.188 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006912/0.1769, allocations: 0.8134 MB / 354.9 MB, free: 7.348 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002485/0.1771, allocations: 63.34 kB / 355 MB, free: 7.285 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002298/0.1774, allocations: 43.41 kB / 355 MB, free: 7.242 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1774, allocations: 4 kB / 355 MB, free: 7.238 MB / 302.1 MB Notification: Performance of Templates: time 0.01918/0.1966, allocations: 9.889 MB / 364.9 MB, free: 13.34 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)