Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.008353/0.008354, allocations: 95.61 kB / 15.73 MB, free: 6.043 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.001657/0.001657, allocations: 196.7 kB / 16.67 MB, free: 5.973 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.568/1.568, allocations: 205.1 MB / 222.6 MB, free: 4.516 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.001451/0.001451, allocations: 53.45 kB / 326.5 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1122, allocations: 46.62 MB / 373.2 MB, free: 1.344 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.005591/0.1179, allocations: 2.342 MB / 375.5 MB, free: 14.99 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00222/0.1202, allocations: 0.9604 MB / 376.5 MB, free: 14.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003275/0.1206, allocations: 4 kB / 376.5 MB, free: 14.02 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003366/0.121, allocations: 51.58 kB / 376.5 MB, free: 13.96 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000742/0.1217, allocations: 135.2 kB / 376.6 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004893/0.1222, allocations: 171.7 kB / 376.8 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005977/0.1228, allocations: 426.8 kB / 377.2 MB, free: 13.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001967/0.123, allocations: 68.69 kB / 377.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003261/0.1234, allocations: 179.4 kB / 377.5 MB, free: 13 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003926/0.1238, allocations: 219.3 kB / 377.7 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.011e-05/0.1239, allocations: 36 kB / 377.7 MB, free: 12.75 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003048/0.1242, allocations: 123.8 kB / 377.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001709/0.1244, allocations: 95.72 kB / 377.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000191/0.1246, allocations: 159.2 kB / 378.1 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007588/0.1253, allocations: 458.3 kB / 378.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.1253, allocations: 0 / 378.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.1254, allocations: 0 / 378.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.539e-05/0.1254, allocations: 0 / 378.5 MB, free: 11.93 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001391/0.1268, allocations: 0.6428 MB / 379.2 MB, free: 11.24 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.1268, allocations: 12.03 kB / 379.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003493/0.1272, allocations: 48.73 kB / 379.2 MB, free: 11.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005644/0.1278, allocations: 303.9 kB / 379.5 MB, free: 10.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000134/0.1279, allocations: 88.52 kB / 379.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.988e-05/0.128, allocations: 28.38 kB / 379.6 MB, free: 10.72 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006985/0.1287, allocations: 385.3 kB / 380 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.1287, allocations: 0 / 380 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.404e-05/0.1288, allocations: 12 kB / 380 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.1288, allocations: 4 kB / 380 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008522/0.1296, allocations: 425.9 kB / 380.5 MB, free: 9.891 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002125/0.1318, allocations: 1.241 MB / 381.7 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007182/0.1325, allocations: 350.5 kB / 382 MB, free: 8.23 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004153/0.1329, allocations: 188.8 kB / 382.2 MB, free: 8.043 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.057e-05/0.133, allocations: 4.719 kB / 382.2 MB, free: 8.039 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.427e-05/0.133, allocations: 42.56 kB / 382.3 MB, free: 7.988 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 3.637e-06/0.133, allocations: 0 / 382.3 MB, free: 7.988 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004765/0.1378, allocations: 1.925 MB / 384.2 MB, free: 5.949 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.061e-05/0.1379, allocations: 84.86 kB / 384.3 MB, free: 5.848 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000373/0.1383, allocations: 246.1 kB / 384.5 MB, free: 5.598 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.089e-05/0.1384, allocations: 37.7 kB / 384.6 MB, free: 5.555 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.1385, allocations: 132.8 kB / 384.7 MB, free: 5.418 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001323/0.1386, allocations: 158.8 kB / 384.8 MB, free: 5.262 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/0.1388, allocations: 82.11 kB / 384.9 MB, free: 5.176 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.1389, allocations: 338.8 kB / 385.3 MB, free: 4.836 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003569/0.1393, allocations: 164.8 kB / 385.4 MB, free: 4.672 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004372/0.1397, allocations: 233.9 kB / 385.6 MB, free: 4.426 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006749/0.1404, allocations: 343.2 kB / 386 MB, free: 4.074 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1404, allocations: 3.938 kB / 386 MB, free: 4.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001125/0.1415, allocations: 0.563 MB / 386.5 MB, free: 3.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.1416, allocations: 4 kB / 386.5 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.1416, allocations: 0 / 386.5 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007724/0.1424, allocations: 252.6 kB / 386.8 MB, free: 3.246 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002485/0.1426, allocations: 59.84 kB / 386.9 MB, free: 3.188 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004056/0.1467, allocations: 2.886 MB / 389.7 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002986/0.147, allocations: 32.08 kB / 389.8 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.668e-05/0.1471, allocations: 19.98 kB / 389.8 MB, free: 116 kB / 318.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.0003327/0.1474, allocations: 153.7 kB / 389.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.407e-05/0.1475, allocations: 23.86 kB / 390 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001031/0.1476, allocations: 42.98 kB / 390 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.1477, allocations: 4 kB / 390 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1477, allocations: 4 kB / 390 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.1477, allocations: 4 kB / 390 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001898/0.1496, allocations: 1.086 MB / 391.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.1496, allocations: 3.938 kB / 391.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002163/0.1498, allocations: 43.97 kB / 391.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006687/0.1505, allocations: 252.8 kB / 391.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.393e-05/0.1506, allocations: 4 kB / 391.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003961/0.1545, allocations: 2.843 MB / 394.2 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.1546, allocations: 0 / 394.2 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001518/0.1561, allocations: 0.8196 MB / 395.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001708/0.1563, allocations: 140.9 kB / 395.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.589e-05/0.1563, allocations: 20.06 kB / 395.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002397/0.1566, allocations: 19.97 kB / 395.2 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000152/0.1567, allocations: 63.84 kB / 395.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.942e-05/0.1568, allocations: 12 kB / 395.3 MB, free: 10.33 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000216/0.157, allocations: 184.2 kB / 395.5 MB, free: 10.15 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.157, allocations: 0 / 395.5 MB, free: 10.15 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006177/0.1576, allocations: 139.9 kB / 395.6 MB, free: 10.02 MB / 334.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.0002419/0.1579, allocations: 139.2 kB / 395.8 MB, free: 9.871 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001252/0.1591, allocations: 0.6368 MB / 396.4 MB, free: 9.223 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.1592, allocations: 0 / 396.4 MB, free: 9.223 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007142/0.1599, allocations: 433.6 kB / 396.8 MB, free: 8.789 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003919/0.1603, allocations: 40.03 kB / 396.9 MB, free: 8.75 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001329/0.1616, allocations: 0.6976 MB / 397.6 MB, free: 8.023 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004226/0.1621, allocations: 0.7722 MB / 398.3 MB, free: 7.227 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001699/0.1622, allocations: 62.89 kB / 398.4 MB, free: 7.168 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.661e-05/0.1623, allocations: 31.42 kB / 398.4 MB, free: 7.137 MB / 334.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1623, allocations: 0 / 398.4 MB, free: 7.137 MB / 334.1 MB Notification: Performance of Templates: time 0.01334/0.1757, allocations: 7.195 MB / 405.6 MB, free: 15.93 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1)