Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.007018/0.007018, allocations: 98.27 kB / 15.73 MB, free: 6.004 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.00126/0.00126, allocations: 192.9 kB / 16.67 MB, free: 5.926 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.566/1.566, allocations: 205.1 MB / 222.5 MB, free: 4.477 MB / 174.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.001338/0.001338, allocations: 45.72 kB / 326.5 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1172, allocations: 46.63 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.00418/0.1215, allocations: 2.727 MB / 375.9 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002084/0.1236, allocations: 1.12 MB / 377 MB, free: 13.45 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001755/0.1238, allocations: 11.88 kB / 377 MB, free: 13.44 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002653/0.1241, allocations: 75.42 kB / 377.1 MB, free: 13.37 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000625/0.1247, allocations: 186.8 kB / 377.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004565/0.1252, allocations: 243.6 kB / 377.5 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006593/0.1258, allocations: 0.6391 MB / 378.2 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002425/0.1261, allocations: 135.3 kB / 378.3 MB, free: 12.17 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003558/0.1265, allocations: 295.1 kB / 378.6 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004481/0.1269, allocations: 339 kB / 378.9 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.621e-05/0.127, allocations: 52 kB / 379 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002987/0.1273, allocations: 147.8 kB / 379.1 MB, free: 11.35 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001891/0.1275, allocations: 147.5 kB / 379.2 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000289/0.1278, allocations: 246.8 kB / 379.5 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007511/0.1286, allocations: 0.6461 MB / 380.1 MB, free: 10.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1286, allocations: 0 / 380.1 MB, free: 10.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1286, allocations: 0 / 380.1 MB, free: 10.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.291e-05/0.1286, allocations: 4 kB / 380.1 MB, free: 10.31 MB / 318.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.00159/0.1302, allocations: 0.8104 MB / 380.9 MB, free: 9.453 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.1303, allocations: 11.89 kB / 381 MB, free: 9.441 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003481/0.1306, allocations: 68.59 kB / 381 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006064/0.1312, allocations: 370.6 kB / 381.4 MB, free: 8.969 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001472/0.1314, allocations: 96.95 kB / 381.5 MB, free: 8.859 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.552e-05/0.1315, allocations: 40.33 kB / 381.5 MB, free: 8.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001047/0.1326, allocations: 0.5645 MB / 382.1 MB, free: 8.242 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.54e-05/0.1326, allocations: 4 kB / 382.1 MB, free: 8.238 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.149e-05/0.1327, allocations: 16 kB / 382.1 MB, free: 8.223 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.604e-05/0.1327, allocations: 8 kB / 382.1 MB, free: 8.215 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001287/0.134, allocations: 0.6401 MB / 382.7 MB, free: 7.574 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00247/0.1364, allocations: 1.287 MB / 384 MB, free: 6.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001151/0.1376, allocations: 0.5444 MB / 384.6 MB, free: 5.676 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006303/0.1383, allocations: 330.4 kB / 384.9 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.194e-05/0.1383, allocations: 8.5 kB / 384.9 MB, free: 5.34 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.293e-05/0.1384, allocations: 39.12 kB / 384.9 MB, free: 5.293 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 2.705e-06/0.1384, allocations: 0 / 384.9 MB, free: 5.293 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.00679/0.1452, allocations: 2.876 MB / 387.8 MB, free: 2.297 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.733e-05/0.1453, allocations: 85.61 kB / 387.9 MB, free: 2.191 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004192/0.1457, allocations: 339 kB / 388.2 MB, free: 1.852 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.454e-05/0.1458, allocations: 37.7 kB / 388.3 MB, free: 1.809 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.1459, allocations: 169.7 kB / 388.4 MB, free: 1.637 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000189/0.1461, allocations: 234 kB / 388.7 MB, free: 1.406 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002232/0.1463, allocations: 122.3 kB / 388.8 MB, free: 1.281 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.1465, allocations: 354.8 kB / 389.1 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005856/0.1471, allocations: 289.2 kB / 389.4 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006561/0.1478, allocations: 350.5 kB / 389.8 MB, free: 296 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0011/0.1489, allocations: 0.5265 MB / 390.3 MB, free: 15.75 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.1489, allocations: 4 kB / 390.3 MB, free: 15.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00173/0.1506, allocations: 0.8774 MB / 391.2 MB, free: 14.86 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.811e-05/0.1507, allocations: 13.03 kB / 391.2 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.1507, allocations: 4.031 kB / 391.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001076/0.1518, allocations: 477.6 kB / 391.7 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003745/0.1522, allocations: 87.81 kB / 391.7 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001343/0.1535, allocations: 1.075 MB / 392.8 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004896/0.154, allocations: 56 kB / 392.9 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.017e-05/0.1541, allocations: 23.98 kB / 392.9 MB, free: 13.11 MB / 334.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.0003368/0.1544, allocations: 181.7 kB / 393.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.878e-05/0.1545, allocations: 43.78 kB / 393.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001616/0.1547, allocations: 71.77 kB / 393.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.655e-06/0.1547, allocations: 11.94 kB / 393.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/0.1547, allocations: 0 / 393.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.1548, allocations: 3.984 kB / 393.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00321/0.158, allocations: 1.749 MB / 394.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.158, allocations: 4 kB / 395 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003622/0.1584, allocations: 83.91 kB / 395 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009638/0.1593, allocations: 452.4 kB / 395.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.192e-05/0.1594, allocations: 19.98 kB / 395.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001465/0.1609, allocations: 1.036 MB / 396.5 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.1609, allocations: 0 / 396.5 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002597/0.1635, allocations: 1.31 MB / 397.8 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002673/0.1638, allocations: 180.8 kB / 398 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.201e-05/0.1639, allocations: 20 kB / 398 MB, free: 7.816 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004397/0.1643, allocations: 47.94 kB / 398.1 MB, free: 7.77 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002073/0.1645, allocations: 84.42 kB / 398.2 MB, free: 7.688 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.336e-05/0.1646, allocations: 27.98 kB / 398.2 MB, free: 7.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003082/0.1649, allocations: 249.9 kB / 398.4 MB, free: 7.418 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1649, allocations: 0 / 398.4 MB, free: 7.418 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005026/0.1654, allocations: 147.9 kB / 398.6 MB, free: 7.273 MB / 334.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.0002885/0.1657, allocations: 155 kB / 398.7 MB, free: 7.109 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001518/0.1672, allocations: 0.7157 MB / 399.4 MB, free: 6.398 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.1673, allocations: 0 / 399.4 MB, free: 6.398 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00079/0.1681, allocations: 396 kB / 399.8 MB, free: 6.012 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005098/0.1686, allocations: 48.81 kB / 399.9 MB, free: 5.957 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002635/0.1712, allocations: 1.129 MB / 401 MB, free: 4.801 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004254/0.1717, allocations: 0.8173 MB / 401.8 MB, free: 3.957 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002253/0.1719, allocations: 63.34 kB / 401.9 MB, free: 3.895 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001344/0.172, allocations: 43.41 kB / 401.9 MB, free: 3.852 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1721, allocations: 4 kB / 401.9 MB, free: 3.848 MB / 334.1 MB Notification: Performance of Templates: time 0.01625/0.1883, allocations: 10.04 MB / 412 MB, free: 9.789 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)