Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.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.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001724/0.001724, allocations: 104.4 kB / 16.51 MB, free: 6.707 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.002461/0.002462, allocations: 186.6 kB / 17.42 MB, free: 6.07 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.82/1.82, allocations: 205.1 MB / 223.3 MB, free: 12.49 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.001378/0.001378, allocations: 43.94 kB / 279.3 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1372, allocations: 46.62 MB / 325.9 MB, free: 4.902 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003821/0.1411, allocations: 2.176 MB / 328.1 MB, free: 2.707 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002429/0.1436, allocations: 1.081 MB / 329.2 MB, free: 1.617 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.1437, allocations: 0 / 329.2 MB, free: 1.617 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002395/0.144, allocations: 27.78 kB / 329.2 MB, free: 1.59 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001311/0.1441, allocations: 43.66 kB / 329.3 MB, free: 1.547 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004951/0.1446, allocations: 111.9 kB / 329.4 MB, free: 1.438 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000423/0.1451, allocations: 343.1 kB / 329.7 MB, free: 1.102 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002655/0.1454, allocations: 103.1 kB / 329.8 MB, free: 1.008 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009813/0.1463, allocations: 0.9201 MB / 330.7 MB, free: 88 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002359/0.1466, allocations: 179.2 kB / 330.9 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.425e-05/0.1467, allocations: 16 kB / 330.9 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.798e-05/0.1467, allocations: 12 kB / 330.9 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001727/0.1469, allocations: 155.3 kB / 331.1 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002617/0.1472, allocations: 262.1 kB / 331.3 MB, free: 15.47 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008229/0.148, allocations: 0.9424 MB / 332.3 MB, free: 14.53 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.755e-06/0.148, allocations: 0 / 332.3 MB, free: 14.53 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.91e-07/0.1481, allocations: 0 / 332.3 MB, free: 14.53 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.154e-05/0.1481, allocations: 0 / 332.3 MB, free: 14.53 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.001549/0.1496, allocations: 1.122 MB / 333.4 MB, free: 13.33 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.561e-05/0.1497, allocations: 12.03 kB / 333.4 MB, free: 13.32 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001492/0.1499, allocations: 80 kB / 333.5 MB, free: 13.24 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006058/0.1505, allocations: 428 kB / 333.9 MB, free: 12.78 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.799e-05/0.1505, allocations: 16.38 kB / 333.9 MB, free: 12.77 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.088e-05/0.1506, allocations: 24.38 kB / 334 MB, free: 12.74 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006945/0.1513, allocations: 305.5 kB / 334.3 MB, free: 12.44 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.1513, allocations: 0 / 334.3 MB, free: 12.44 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.161e-05/0.1514, allocations: 11.98 kB / 334.3 MB, free: 12.43 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.1514, allocations: 4 kB / 334.3 MB, free: 12.42 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004619/0.1519, allocations: 207.9 kB / 334.5 MB, free: 12.22 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001554/0.1534, allocations: 0.8824 MB / 335.4 MB, free: 11.29 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005907/0.154, allocations: 218.4 kB / 335.6 MB, free: 11.06 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003222/0.1544, allocations: 164.8 kB / 335.7 MB, free: 10.9 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.514e-05/0.1544, allocations: 4 kB / 335.7 MB, free: 10.89 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008194/0.1552, allocations: 389.6 kB / 336.1 MB, free: 10.48 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.502e-06/0.1553, allocations: 0 / 336.1 MB, free: 10.48 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001725/0.157, allocations: 0.7375 MB / 336.9 MB, free: 9.707 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001473/0.1571, allocations: 170.2 kB / 337 MB, free: 9.504 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001586/0.1587, allocations: 1.008 MB / 338 MB, free: 8.484 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.272e-05/0.1588, allocations: 33.7 kB / 338.1 MB, free: 8.445 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002108/0.159, allocations: 153.8 kB / 338.2 MB, free: 8.293 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.621e-05/0.1591, allocations: 59.28 kB / 338.3 MB, free: 8.234 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002616/0.1594, allocations: 169 kB / 338.4 MB, free: 8.062 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.1596, allocations: 338.8 kB / 338.8 MB, free: 7.723 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002853/0.1599, allocations: 127.9 kB / 338.9 MB, free: 7.598 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003158/0.1602, allocations: 160.2 kB / 339 MB, free: 7.426 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000651/0.1609, allocations: 473.8 kB / 339.5 MB, free: 6.898 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.1609, allocations: 0 / 339.5 MB, free: 6.898 MB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000994/0.1619, allocations: 0.5897 MB / 340.1 MB, free: 6.277 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001348/0.162, allocations: 130.8 kB / 340.2 MB, free: 6.125 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.162, allocations: 4.062 kB / 340.2 MB, free: 6.121 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.152e-05/0.1621, allocations: 7.984 kB / 340.2 MB, free: 6.113 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.956e-05/0.1622, allocations: 12 kB / 340.2 MB, free: 6.102 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.1622, allocations: 3.938 kB / 340.3 MB, free: 6.098 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003167/0.1625, allocations: 35.88 kB / 340.3 MB, free: 6.062 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001867/0.1627, allocations: 115.9 kB / 340.4 MB, free: 5.949 MB / 286.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: 28 ($PRE.Adder.XOR.G2.y,$PRE.Adder.AND.G2.y,Adder.XOR.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,b.y,a.y,Adder.XOR.G2.t_next,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.delayTime,Adder.XOR.G2.y,Adder.XOR.G2.x,$PRE.Adder.XOR.G2.x,$PRE.Adder.XOR.G1.auxiliary_n,$whenCondition2,$whenCondition1,Adder.AND.G2.t_next,Adder.AND.G2.lh,Adder.AND.G2.y_old,Adder.AND.G2.y_auxiliary,Adder.AND.G2.delayTime,Adder.AND.G2.y,Adder.AND.G2.x,$PRE.Adder.AND.G2.x,$PRE.Adder.AND.G1.auxiliary_n,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007143/0.1634, allocations: 0.5337 MB / 340.9 MB, free: 5.379 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001144/0.1636, allocations: 79.06 kB / 341 MB, free: 5.301 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002184/0.1638, allocations: 130.4 kB / 341.1 MB, free: 5.16 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.1638, allocations: 4 kB / 341.1 MB, free: 5.156 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.1638, allocations: 0 / 341.1 MB, free: 5.156 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.1638, allocations: 3.938 kB / 341.1 MB, free: 5.152 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00096/0.1648, allocations: 0.6219 MB / 341.8 MB, free: 4.48 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.1648, allocations: 3.984 kB / 341.8 MB, free: 4.477 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.382e-05/0.1648, allocations: 8 kB / 341.8 MB, free: 4.469 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.241e-06/0.1649, allocations: 8 kB / 341.8 MB, free: 4.461 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.933e-05/0.1649, allocations: 23.98 kB / 341.8 MB, free: 4.438 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.1649, allocations: 0 / 341.8 MB, free: 4.438 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.165, allocations: 7.938 kB / 341.8 MB, free: 4.43 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001206/0.1662, allocations: 0.7017 MB / 342.5 MB, free: 3.684 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000693/0.1669, allocations: 495.9 kB / 343 MB, free: 3.18 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/0.167, allocations: 24 kB / 343 MB, free: 3.156 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002138/0.1672, allocations: 27.97 kB / 343.1 MB, free: 3.129 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002299/0.1674, allocations: 56.12 kB / 343.1 MB, free: 3.074 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001519/0.1676, allocations: 119.9 kB / 343.2 MB, free: 2.957 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.00117/0.1688, allocations: 0.725 MB / 344 MB, free: 2.234 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1688, allocations: 0 / 344 MB, free: 2.234 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004434/0.1692, allocations: 95.84 kB / 344 MB, free: 2.141 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 22 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next,Adder.XOR.G1.auxiliary_n,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next) * Number of discrete states: 22 (Adder.XOR.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,Adder.XOR.G2.y,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.t_next,Adder.XOR.G2.delayTime,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,$whenCondition2,$whenCondition1,Adder.XOR.G2.x,Adder.AND.G2.y,Adder.AND.G2.y_auxiliary,Adder.AND.G2.t_next,Adder.AND.G2.delayTime,Adder.AND.G2.lh,Adder.AND.G2.y_old,$whenCondition4,$whenCondition3,Adder.AND.G2.x,b.y,a.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00025/0.1695, allocations: 138.8 kB / 344.2 MB, free: 1.996 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001189/0.1707, allocations: 0.6537 MB / 344.8 MB, free: 1.293 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 6.553e-06/0.1707, allocations: 7.938 kB / 344.8 MB, free: 1.285 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000895/0.1716, allocations: 0.521 MB / 345.4 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009184/0.1725, allocations: 187.7 kB / 345.5 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003047/0.1756, allocations: 1.553 MB / 347.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009402/0.1766, allocations: 0.9677 MB / 348.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004142/0.177, allocations: 161.1 kB / 348.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001885/0.1772, allocations: 71.23 kB / 348.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1772, allocations: 3.938 kB / 348.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of Templates: time 0.01513/0.1923, allocations: 7.353 MB / 355.7 MB, free: 6.344 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1)