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.001344/0.001344, allocations: 91.25 kB / 16.65 MB, free: 6.59 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.001464/0.001464, allocations: 184.5 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.009/2.009, allocations: 205.4 MB / 223.7 MB, free: 13.07 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.0004553/0.0004553, allocations: 12 kB / 280.7 MB, free: 3.414 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1406/0.1411, allocations: 47.58 MB / 328.3 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002592/0.1437, allocations: 1.81 MB / 330.1 MB, free: 1.93 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002504/0.1463, allocations: 1.069 MB / 331.2 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001172/0.1464, allocations: 11.94 kB / 331.2 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001677/0.1466, allocations: 23.78 kB / 331.2 MB, free: 0.8164 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001116/0.1467, allocations: 39.72 kB / 331.3 MB, free: 0.7773 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004048/0.1471, allocations: 111.8 kB / 331.4 MB, free: 0.668 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004103/0.1476, allocations: 339.1 kB / 331.7 MB, free: 344 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002578/0.1478, allocations: 101.7 kB / 331.8 MB, free: 252 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009772/0.1488, allocations: 0.9123 MB / 332.7 MB, free: 15.33 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002079/0.149, allocations: 163.2 kB / 332.9 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.793e-05/0.1491, allocations: 8 kB / 332.9 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.776e-05/0.1492, allocations: 8 kB / 332.9 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001671/0.1493, allocations: 155.3 kB / 333.1 MB, free: 15 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002755/0.1496, allocations: 283.8 kB / 333.3 MB, free: 14.72 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007695/0.1504, allocations: 0.9227 MB / 334.2 MB, free: 13.79 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1504, allocations: 0 / 334.2 MB, free: 13.79 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.1504, allocations: 0 / 334.2 MB, free: 13.79 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.133e-06/0.1504, allocations: 0 / 334.2 MB, free: 13.79 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.001169/0.1516, allocations: 0.9669 MB / 335.2 MB, free: 12.75 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.1517, allocations: 8.031 kB / 335.2 MB, free: 12.74 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001564/0.1518, allocations: 80 kB / 335.3 MB, free: 12.66 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005841/0.1524, allocations: 432 kB / 335.7 MB, free: 12.2 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.162e-05/0.1525, allocations: 16.38 kB / 335.7 MB, free: 12.19 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.097e-05/0.1526, allocations: 20.38 kB / 335.8 MB, free: 12.17 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007144/0.1533, allocations: 309.5 kB / 336.1 MB, free: 11.86 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.1533, allocations: 0 / 336.1 MB, free: 11.86 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.523e-05/0.1534, allocations: 8 kB / 336.1 MB, free: 11.85 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.1534, allocations: 7.938 kB / 336.1 MB, free: 11.84 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000466/0.1539, allocations: 215.9 kB / 336.3 MB, free: 11.63 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001516/0.1554, allocations: 0.8901 MB / 337.2 MB, free: 10.69 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004694/0.1559, allocations: 214.5 kB / 337.4 MB, free: 10.47 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002915/0.1562, allocations: 152.8 kB / 337.5 MB, free: 10.32 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.918e-05/0.1562, allocations: 4 kB / 337.5 MB, free: 10.32 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006207/0.1569, allocations: 390 kB / 337.9 MB, free: 9.898 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 2.044e-06/0.1569, allocations: 0 / 337.9 MB, free: 9.898 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.00139/0.1583, allocations: 0.7335 MB / 338.7 MB, free: 9.133 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/0.1584, allocations: 178.1 kB / 338.8 MB, free: 8.922 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001384/0.1598, allocations: 1 MB / 339.8 MB, free: 7.91 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.241e-05/0.1598, allocations: 33.7 kB / 339.9 MB, free: 7.871 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001268/0.16, allocations: 153.8 kB / 340 MB, free: 7.719 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.48e-05/0.1601, allocations: 55.34 kB / 340.1 MB, free: 7.664 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.772e-05/0.1601, allocations: 49.62 kB / 340.1 MB, free: 7.609 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.1603, allocations: 342.8 kB / 340.5 MB, free: 7.266 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002667/0.1606, allocations: 124 kB / 340.6 MB, free: 7.145 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003035/0.1609, allocations: 168.2 kB / 340.7 MB, free: 6.965 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006261/0.1615, allocations: 473.8 kB / 341.2 MB, free: 6.438 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1615, allocations: 0 / 341.2 MB, free: 6.438 MB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009565/0.1625, allocations: 0.5781 MB / 341.8 MB, free: 5.828 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001273/0.1626, allocations: 134.8 kB / 341.9 MB, free: 5.672 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.1627, allocations: 3.938 kB / 341.9 MB, free: 5.668 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.239e-05/0.1627, allocations: 4 kB / 341.9 MB, free: 5.664 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.902e-05/0.1628, allocations: 8 kB / 341.9 MB, free: 5.656 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.267e-05/0.1628, allocations: 7.984 kB / 341.9 MB, free: 5.648 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003112/0.1631, allocations: 31.89 kB / 342 MB, free: 5.617 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001433/0.1633, allocations: 119.9 kB / 342.1 MB, free: 5.5 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.0007029/0.164, allocations: 0.5297 MB / 342.6 MB, free: 4.934 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.1641, allocations: 75.16 kB / 342.7 MB, free: 4.859 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002406/0.1644, allocations: 134.4 kB / 342.8 MB, free: 4.715 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.1644, allocations: 4.031 kB / 342.8 MB, free: 4.711 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.251e-05/0.1644, allocations: 8.125 kB / 342.8 MB, free: 4.703 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.1644, allocations: 0 / 342.8 MB, free: 4.703 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009141/0.1653, allocations: 0.6335 MB / 343.5 MB, free: 4.02 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1653, allocations: 0 / 343.5 MB, free: 4.02 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.576e-05/0.1654, allocations: 12 kB / 343.5 MB, free: 4.008 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.1654, allocations: 0 / 343.5 MB, free: 4.008 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.34e-05/0.1655, allocations: 24.08 kB / 343.5 MB, free: 3.984 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1655, allocations: 3.938 kB / 343.5 MB, free: 3.98 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.1655, allocations: 0 / 343.5 MB, free: 3.98 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001221/0.1667, allocations: 0.7139 MB / 344.2 MB, free: 3.223 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007239/0.1675, allocations: 499.7 kB / 344.7 MB, free: 2.715 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/0.1676, allocations: 20 kB / 344.7 MB, free: 2.695 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002139/0.1678, allocations: 27.97 kB / 344.7 MB, free: 2.668 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002053/0.168, allocations: 51.95 kB / 344.8 MB, free: 2.617 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001406/0.1682, allocations: 115.8 kB / 344.9 MB, free: 2.504 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.001091/0.1693, allocations: 0.729 MB / 345.6 MB, free: 1.777 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.284e-06/0.1693, allocations: 0 / 345.6 MB, free: 1.777 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004417/0.1697, allocations: 103.8 kB / 345.7 MB, free: 1.676 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.0002468/0.17, allocations: 130.7 kB / 345.9 MB, free: 1.539 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009946/0.171, allocations: 0.6576 MB / 346.5 MB, free: 0.832 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.171, allocations: 0 / 346.5 MB, free: 0.832 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005957/0.1716, allocations: 0.5288 MB / 347.1 MB, free: 260 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000879/0.1725, allocations: 175.1 kB / 347.2 MB, free: 88 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002861/0.1753, allocations: 1.555 MB / 348.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009189/0.1763, allocations: 0.9639 MB / 349.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004792/0.1768, allocations: 165.2 kB / 349.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001962/0.177, allocations: 79.28 kB / 350 MB, free: 13.27 MB / 302.1 MB Notification: Performance of SimCode: time 1.152e-06/0.177, allocations: 0 / 350 MB, free: 13.27 MB / 302.1 MB Notification: Performance of Templates: time 0.01265/0.1897, allocations: 6.851 MB / 356.8 MB, free: 6.387 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)