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.001849/0.001849, allocations: 110.4 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.001503/0.001503, 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 2.04/2.04, 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.001773/0.001774, allocations: 51.92 kB / 280 MB, free: 3.184 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1601/0.1619, allocations: 46.63 MB / 326.6 MB, free: 4.48 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.004154/0.1661, allocations: 2.11 MB / 328.7 MB, free: 2.348 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002625/0.1688, allocations: 1.05 MB / 329.8 MB, free: 1.289 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001367/0.169, allocations: 11.94 kB / 329.8 MB, free: 1.277 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002259/0.1692, allocations: 39.64 kB / 329.8 MB, free: 1.238 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001237/0.1694, allocations: 43.59 kB / 329.9 MB, free: 1.195 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004978/0.1699, allocations: 127.8 kB / 330 MB, free: 1.07 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004889/0.1704, allocations: 411.1 kB / 330.4 MB, free: 0.668 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002876/0.1707, allocations: 103.1 kB / 330.5 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001013/0.1717, allocations: 0.9396 MB / 331.4 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000252/0.172, allocations: 195.2 kB / 331.6 MB, free: 15.44 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.651e-05/0.1721, allocations: 32 kB / 331.7 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.168e-05/0.1722, allocations: 36 kB / 331.7 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001973/0.1724, allocations: 179.3 kB / 331.9 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002863/0.1727, allocations: 282.1 kB / 332.1 MB, free: 14.92 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009931/0.1737, allocations: 0.9658 MB / 333.1 MB, free: 13.95 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.1737, allocations: 0 / 333.1 MB, free: 13.95 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.1737, allocations: 0 / 333.1 MB, free: 13.95 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.13e-05/0.1737, allocations: 0 / 333.1 MB, free: 13.95 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.001432/0.1751, allocations: 1.118 MB / 334.2 MB, free: 12.76 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.277e-05/0.1752, allocations: 12.03 kB / 334.2 MB, free: 12.75 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001539/0.1754, allocations: 83.94 kB / 334.3 MB, free: 12.66 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004993/0.1759, allocations: 432 kB / 334.7 MB, free: 12.2 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.363e-05/0.1759, allocations: 16.38 kB / 334.8 MB, free: 12.19 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.509e-05/0.176, allocations: 20.38 kB / 334.8 MB, free: 12.17 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006409/0.1766, allocations: 309.3 kB / 335.1 MB, free: 11.86 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.1767, allocations: 0 / 335.1 MB, free: 11.86 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.407e-05/0.1767, allocations: 8 kB / 335.1 MB, free: 11.85 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.1767, allocations: 4 kB / 335.1 MB, free: 11.85 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004337/0.1772, allocations: 211.9 kB / 335.3 MB, free: 11.64 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001443/0.1786, allocations: 0.8941 MB / 336.2 MB, free: 10.7 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004876/0.1791, allocations: 222.5 kB / 336.4 MB, free: 10.47 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002897/0.1794, allocations: 156.8 kB / 336.6 MB, free: 10.31 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.431e-05/0.1794, allocations: 3.984 kB / 336.6 MB, free: 10.31 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000719/0.1802, allocations: 385.8 kB / 336.9 MB, free: 9.895 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.603e-06/0.1802, allocations: 0 / 336.9 MB, free: 9.895 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001476/0.1817, allocations: 0.7374 MB / 337.7 MB, free: 9.125 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001397/0.1818, allocations: 178.2 kB / 337.9 MB, free: 8.914 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001441/0.1833, allocations: 1.008 MB / 338.9 MB, free: 7.895 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.383e-05/0.1833, allocations: 33.7 kB / 338.9 MB, free: 7.855 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000139/0.1835, allocations: 153.8 kB / 339.1 MB, free: 7.703 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.882e-05/0.1836, allocations: 55.3 kB / 339.1 MB, free: 7.648 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002332/0.1838, allocations: 169 kB / 339.3 MB, free: 7.477 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.184, allocations: 342.8 kB / 339.6 MB, free: 7.133 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002682/0.1843, allocations: 123.9 kB / 339.7 MB, free: 7.012 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002831/0.1845, allocations: 168.2 kB / 339.9 MB, free: 6.832 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005897/0.1851, allocations: 473.7 kB / 340.4 MB, free: 6.305 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.1852, allocations: 0 / 340.4 MB, free: 6.305 MB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009542/0.1861, allocations: 0.578 MB / 340.9 MB, free: 5.695 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001091/0.1862, allocations: 138.8 kB / 341.1 MB, free: 5.535 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.1863, allocations: 4 kB / 341.1 MB, free: 5.531 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.186e-05/0.1863, allocations: 0 / 341.1 MB, free: 5.531 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.1864, allocations: 15.98 kB / 341.1 MB, free: 5.516 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.848e-06/0.1864, allocations: 0 / 341.1 MB, free: 5.516 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002356/0.1867, allocations: 27.89 kB / 341.1 MB, free: 5.488 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000139/0.1868, allocations: 115.8 kB / 341.2 MB, free: 5.375 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.0007087/0.1875, allocations: 0.5337 MB / 341.8 MB, free: 4.809 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.1876, allocations: 79.14 kB / 341.8 MB, free: 4.73 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002215/0.1879, allocations: 126.4 kB / 342 MB, free: 4.594 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.1879, allocations: 0 / 342 MB, free: 4.594 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/0.1879, allocations: 0 / 342 MB, free: 4.594 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.1879, allocations: 4 kB / 342 MB, free: 4.59 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008367/0.1888, allocations: 0.6218 MB / 342.6 MB, free: 3.918 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.1888, allocations: 4 kB / 342.6 MB, free: 3.914 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.914e-05/0.1888, allocations: 15.98 kB / 342.6 MB, free: 3.898 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.1888, allocations: 0 / 342.6 MB, free: 3.898 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.875e-05/0.1889, allocations: 28.11 kB / 342.6 MB, free: 3.871 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.051e-06/0.1889, allocations: 4 kB / 342.6 MB, free: 3.867 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1889, allocations: 3.938 kB / 342.6 MB, free: 3.863 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00115/0.1901, allocations: 0.6985 MB / 343.3 MB, free: 3.121 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006835/0.1908, allocations: 0.4958 MB / 343.8 MB, free: 2.605 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/0.1909, allocations: 27.98 kB / 343.9 MB, free: 2.578 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001729/0.1911, allocations: 19.98 kB / 343.9 MB, free: 2.559 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001872/0.1913, allocations: 47.95 kB / 343.9 MB, free: 2.512 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000119/0.1914, allocations: 115.9 kB / 344 MB, free: 2.398 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.001117/0.1925, allocations: 0.7251 MB / 344.8 MB, free: 1.676 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1925, allocations: 192 / 344.8 MB, free: 1.676 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004028/0.1929, allocations: 91.94 kB / 344.9 MB, free: 1.586 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.0002177/0.1932, allocations: 150.5 kB / 345 MB, free: 1.43 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001034/0.1942, allocations: 0.6537 MB / 345.7 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.1942, allocations: 0 / 345.7 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005791/0.1948, allocations: 0.5288 MB / 346.2 MB, free: 152 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009322/0.1957, allocations: 196.1 kB / 346.4 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002595/0.1984, allocations: 1.333 MB / 347.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001064/0.1994, allocations: 0.9636 MB / 348.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004548/0.1999, allocations: 161.2 kB / 348.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001995/0.2001, allocations: 75.3 kB / 348.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of SimCode: time 1.323e-06/0.2001, allocations: 0 / 348.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of Templates: time 0.01576/0.2159, allocations: 7.718 MB / 356.6 MB, free: 5.625 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)