Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.002029/0.002029, allocations: 106.3 kB / 16.92 MB, free: 6.332 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.002003/0.002003, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.445/1.445, allocations: 205.1 MB / 223.7 MB, free: 12.34 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.001801/0.001801, allocations: 59.92 kB / 280 MB, free: 3.172 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1284, allocations: 46.62 MB / 326.6 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004337/0.1328, allocations: 2.424 MB / 329 MB, free: 2.027 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00237/0.1352, allocations: 1.011 MB / 330.1 MB, free: 1.008 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002902/0.1355, allocations: 4 kB / 330.1 MB, free: 1.004 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002947/0.1359, allocations: 51.5 kB / 330.1 MB, free: 0.9531 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007923/0.1367, allocations: 163 kB / 330.3 MB, free: 0.793 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005605/0.1373, allocations: 175.7 kB / 330.4 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007443/0.138, allocations: 470.5 kB / 330.9 MB, free: 164 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002836/0.1383, allocations: 92.7 kB / 331 MB, free: 72 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005468/0.1389, allocations: 207.4 kB / 331.2 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005242/0.1394, allocations: 243.2 kB / 331.4 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001552/0.1396, allocations: 40 kB / 331.5 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004082/0.14, allocations: 111.9 kB / 331.6 MB, free: 15.48 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002337/0.1402, allocations: 107.7 kB / 331.7 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004512/0.1407, allocations: 195.1 kB / 331.9 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001061/0.1418, allocations: 490.8 kB / 332.4 MB, free: 14.7 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.1418, allocations: 0 / 332.4 MB, free: 14.7 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.105e-06/0.1418, allocations: 0 / 332.4 MB, free: 14.7 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.295e-05/0.1418, allocations: 0 / 332.4 MB, free: 14.7 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001958/0.1438, allocations: 0.6783 MB / 333 MB, free: 13.98 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.1438, allocations: 8.031 kB / 333 MB, free: 13.97 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004046/0.1443, allocations: 48.55 kB / 333.1 MB, free: 13.92 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005125/0.1448, allocations: 319.5 kB / 333.4 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001397/0.1449, allocations: 88.61 kB / 333.5 MB, free: 13.47 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.469e-05/0.145, allocations: 32.28 kB / 333.5 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000818/0.1458, allocations: 424.9 kB / 333.9 MB, free: 13.01 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/0.1459, allocations: 0 / 333.9 MB, free: 13.01 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.551e-05/0.1459, allocations: 16 kB / 333.9 MB, free: 13 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.1459, allocations: 8 kB / 334 MB, free: 12.99 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001101/0.1471, allocations: 466.3 kB / 334.4 MB, free: 12.53 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001854/0.1489, allocations: 0.9774 MB / 335.4 MB, free: 11.49 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008617/0.1498, allocations: 408.6 kB / 335.8 MB, free: 11.09 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004848/0.1503, allocations: 226.1 kB / 336 MB, free: 10.86 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.942e-05/0.1503, allocations: 12.44 kB / 336 MB, free: 10.85 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/0.1504, allocations: 38.98 kB / 336.1 MB, free: 10.8 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 2.064e-06/0.1504, allocations: 0 / 336.1 MB, free: 10.8 MB / 286.1 MB Notification: Performance of matching and sorting (n=55): time 0.005584/0.156, allocations: 2.167 MB / 338.2 MB, free: 8.527 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.531e-05/0.1561, allocations: 85.67 kB / 338.3 MB, free: 8.426 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003646/0.1565, allocations: 259.1 kB / 338.6 MB, free: 8.164 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.575e-05/0.1565, allocations: 33.7 kB / 338.6 MB, free: 8.125 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.1566, allocations: 145 kB / 338.7 MB, free: 7.977 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001546/0.1568, allocations: 177.5 kB / 338.9 MB, free: 7.801 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002438/0.157, allocations: 102.1 kB / 339 MB, free: 7.695 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.1572, allocations: 338.8 kB / 339.3 MB, free: 7.355 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004386/0.1577, allocations: 193 kB / 339.5 MB, free: 7.164 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004832/0.1582, allocations: 244.6 kB / 339.8 MB, free: 6.918 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008821/0.159, allocations: 400.3 kB / 340.2 MB, free: 6.523 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1591, allocations: 0 / 340.2 MB, free: 6.523 MB / 286.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001328/0.1604, allocations: 0.6057 MB / 340.8 MB, free: 5.906 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.285e-05/0.1604, allocations: 7.938 kB / 340.8 MB, free: 5.898 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.1604, allocations: 7.984 kB / 340.8 MB, free: 5.891 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007891/0.1612, allocations: 257.9 kB / 341 MB, free: 5.637 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003287/0.1616, allocations: 67.89 kB / 341.1 MB, free: 5.57 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004705/0.1663, allocations: 2.936 MB / 344 MB, free: 2.5 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004184/0.1668, allocations: 27.97 kB / 344.1 MB, free: 2.473 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.127e-05/0.1668, allocations: 19.98 kB / 344.1 MB, free: 2.453 MB / 286.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.0002474/0.1671, allocations: 149.8 kB / 344.2 MB, free: 2.297 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.16e-05/0.1672, allocations: 43.56 kB / 344.3 MB, free: 2.254 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001101/0.1673, allocations: 51.3 kB / 344.3 MB, free: 2.203 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.1673, allocations: 8 kB / 344.3 MB, free: 2.195 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.1673, allocations: 0 / 344.3 MB, free: 2.195 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.1673, allocations: 3.984 kB / 344.3 MB, free: 2.191 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002281/0.1696, allocations: 1.26 MB / 345.6 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/0.1696, allocations: 4 kB / 345.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003414/0.17, allocations: 63.89 kB / 345.7 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007821/0.1708, allocations: 248.7 kB / 345.9 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.449e-05/0.1708, allocations: 15.98 kB / 345.9 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003982/0.1748, allocations: 2.846 MB / 348.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1749, allocations: 0 / 348.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001888/0.1768, allocations: 0.9571 MB / 349.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001801/0.177, allocations: 148.8 kB / 349.9 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.345e-05/0.177, allocations: 19.94 kB / 349.9 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003132/0.1773, allocations: 27.97 kB / 349.9 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001705/0.1775, allocations: 68.33 kB / 350 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.632e-05/0.1776, allocations: 15.98 kB / 350 MB, free: 12.28 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002465/0.1778, allocations: 196.6 kB / 350.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1778, allocations: 0 / 350.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006213/0.1785, allocations: 156 kB / 350.3 MB, free: 11.93 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: 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.0002579/0.1787, allocations: 155 kB / 350.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001528/0.1803, allocations: 0.7189 MB / 351.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1803, allocations: 4 kB / 351.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000811/0.1811, allocations: 475.7 kB / 351.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004298/0.1815, allocations: 36.44 kB / 351.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001467/0.183, allocations: 0.8086 MB / 352.5 MB, free: 9.691 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003766/0.1834, allocations: 0.7967 MB / 353.3 MB, free: 8.863 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002025/0.1836, allocations: 58.94 kB / 353.4 MB, free: 8.801 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.452e-05/0.1837, allocations: 31.42 kB / 353.4 MB, free: 8.77 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1837, allocations: 4 kB / 353.4 MB, free: 8.766 MB / 302.1 MB Notification: Performance of Templates: time 0.01338/0.1971, allocations: 7.767 MB / 361.2 MB, free: 0.9961 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1)