Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005387/0.005387, allocations: 99.62 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.001209/0.001209, allocations: 191.7 kB / 16.67 MB, free: 5.957 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.526/1.526, allocations: 205.1 MB / 222.5 MB, free: 4.52 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.001134/0.001134, allocations: 50.52 kB / 326.5 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1107, allocations: 46.63 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004965/0.1157, allocations: 2.42 MB / 375.6 MB, free: 14.89 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002402/0.1182, allocations: 1.003 MB / 376.6 MB, free: 13.88 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001648/0.1183, allocations: 11.94 kB / 376.6 MB, free: 13.87 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002736/0.1186, allocations: 55.56 kB / 376.6 MB, free: 13.81 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006821/0.1193, allocations: 155.1 kB / 376.8 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004691/0.1198, allocations: 183.6 kB / 377 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007216/0.1206, allocations: 466.5 kB / 377.4 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002694/0.1208, allocations: 96.84 kB / 377.5 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003719/0.1212, allocations: 207.4 kB / 377.7 MB, free: 12.72 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004148/0.1216, allocations: 251.1 kB / 378 MB, free: 12.48 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.191e-05/0.1217, allocations: 36 kB / 378 MB, free: 12.44 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002925/0.122, allocations: 123.9 kB / 378.1 MB, free: 12.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000207/0.1223, allocations: 115.6 kB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002692/0.1226, allocations: 183.1 kB / 378.4 MB, free: 12.03 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007384/0.1233, allocations: 498.5 kB / 378.9 MB, free: 11.54 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.1233, allocations: 0 / 378.9 MB, free: 11.54 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1233, allocations: 4 kB / 378.9 MB, free: 11.54 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.241e-05/0.1234, allocations: 0 / 378.9 MB, free: 11.54 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001815/0.1252, allocations: 0.6743 MB / 379.6 MB, free: 10.81 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.302e-05/0.1252, allocations: 12.03 kB / 379.6 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004571/0.1257, allocations: 52.53 kB / 379.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007548/0.1265, allocations: 323.3 kB / 380 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001845/0.1267, allocations: 92.61 kB / 380.1 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.652e-05/0.1268, allocations: 32.36 kB / 380.1 MB, free: 10.26 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001174/0.128, allocations: 417.1 kB / 380.5 MB, free: 9.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.935e-05/0.128, allocations: 11.89 kB / 380.5 MB, free: 9.828 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.709e-05/0.1281, allocations: 12 kB / 380.5 MB, free: 9.816 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.838e-05/0.1281, allocations: 8 kB / 380.5 MB, free: 9.809 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001454/0.1296, allocations: 466.3 kB / 381 MB, free: 9.352 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002504/0.1321, allocations: 0.9619 MB / 381.9 MB, free: 8.332 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00125/0.1334, allocations: 425.3 kB / 382.4 MB, free: 7.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007102/0.1341, allocations: 234.1 kB / 382.6 MB, free: 7.68 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.731e-05/0.1341, allocations: 4.438 kB / 382.6 MB, free: 7.672 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.43e-05/0.1342, allocations: 39 kB / 382.6 MB, free: 7.625 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 3.697e-06/0.1342, allocations: 0 / 382.6 MB, free: 7.625 MB / 318.1 MB Notification: Performance of matching and sorting (n=55): time 0.007472/0.1417, allocations: 2.171 MB / 384.8 MB, free: 5.348 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.993e-05/0.1418, allocations: 85.67 kB / 384.9 MB, free: 5.242 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003939/0.1422, allocations: 259.1 kB / 385.1 MB, free: 4.977 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.952e-05/0.1423, allocations: 41.7 kB / 385.2 MB, free: 4.93 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.1424, allocations: 129.2 kB / 385.3 MB, free: 4.801 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001859/0.1426, allocations: 185.3 kB / 385.5 MB, free: 4.617 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001949/0.1428, allocations: 90.23 kB / 385.6 MB, free: 4.523 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.1429, allocations: 338.8 kB / 385.9 MB, free: 4.184 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006341/0.1436, allocations: 197 kB / 386.1 MB, free: 3.992 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006863/0.1443, allocations: 248.6 kB / 386.3 MB, free: 3.738 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001182/0.1455, allocations: 392.3 kB / 386.7 MB, free: 3.348 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.155e-06/0.1455, allocations: 0 / 386.7 MB, free: 3.348 MB / 318.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001761/0.1473, allocations: 0.6174 MB / 387.3 MB, free: 2.723 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.1473, allocations: 7.938 kB / 387.3 MB, free: 2.715 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.1473, allocations: 0 / 387.3 MB, free: 2.715 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009922/0.1483, allocations: 253.8 kB / 387.6 MB, free: 2.465 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004393/0.1488, allocations: 67.89 kB / 387.7 MB, free: 2.398 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00461/0.1534, allocations: 2.928 MB / 390.6 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004425/0.1539, allocations: 31.97 kB / 390.6 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.024e-05/0.1539, allocations: 19.98 kB / 390.6 MB, free: 15.28 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 32 * 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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002705/0.1542, allocations: 157.8 kB / 390.8 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001242/0.1544, allocations: 39.59 kB / 390.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001377/0.1545, allocations: 47.3 kB / 390.9 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/0.1545, allocations: 8 kB / 390.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.1545, allocations: 0 / 390.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.1545, allocations: 3.984 kB / 390.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003054/0.1576, allocations: 1.274 MB / 392.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.1576, allocations: 0 / 392.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004367/0.1581, allocations: 63.95 kB / 392.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009181/0.159, allocations: 248.5 kB / 392.5 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.99e-05/0.1591, allocations: 15.98 kB / 392.5 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005603/0.1647, allocations: 2.838 MB / 395.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.1647, allocations: 0 / 395.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002804/0.1675, allocations: 0.9583 MB / 396.3 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002844/0.1678, allocations: 148.7 kB / 396.4 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001133/0.168, allocations: 15.94 kB / 396.4 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005006/0.1685, allocations: 27.97 kB / 396.5 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002585/0.1688, allocations: 68.33 kB / 396.5 MB, free: 9.125 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.231e-05/0.1689, allocations: 19.98 kB / 396.6 MB, free: 9.105 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004098/0.1693, allocations: 196.7 kB / 396.8 MB, free: 8.914 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.1693, allocations: 0 / 396.8 MB, free: 8.914 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00102/0.1703, allocations: 156 kB / 396.9 MB, free: 8.762 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: 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 (31): * Single equations (assignments): 30 * 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.000377/0.1707, allocations: 135.2 kB / 397 MB, free: 8.617 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002269/0.173, allocations: 0.7071 MB / 397.7 MB, free: 7.895 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.173, allocations: 0 / 397.7 MB, free: 7.895 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001208/0.1742, allocations: 483.6 kB / 398.2 MB, free: 7.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006711/0.1749, allocations: 40.66 kB / 398.3 MB, free: 7.371 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00251/0.1775, allocations: 0.7929 MB / 399 MB, free: 6.551 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005383/0.178, allocations: 0.8005 MB / 399.8 MB, free: 5.723 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003153/0.1784, allocations: 62.95 kB / 399.9 MB, free: 5.664 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001516/0.1785, allocations: 39.36 kB / 399.9 MB, free: 5.625 MB / 334.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1785, allocations: 0 / 399.9 MB, free: 5.625 MB / 334.1 MB Notification: Performance of Templates: time 0.02089/0.1994, allocations: 7.869 MB / 407.8 MB, free: 13.74 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1)