Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.009651/0.009651, allocations: 99.83 kB / 15.73 MB, free: 6.02 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.002013/0.002013, allocations: 189.5 kB / 16.67 MB, free: 5.938 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.97/1.97, allocations: 205.1 MB / 222.6 MB, free: 4.488 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.001561/0.001562, allocations: 54.2 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.161/0.1626, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003476/0.1661, allocations: 2.103 MB / 375.3 MB, free: 15.2 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002306/0.1684, allocations: 1.057 MB / 376.3 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.28e-05/0.1685, allocations: 0 / 376.3 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002293/0.1688, allocations: 39.59 kB / 376.4 MB, free: 14.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001235/0.1689, allocations: 55.56 kB / 376.4 MB, free: 14.04 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004736/0.1694, allocations: 131.8 kB / 376.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005138/0.1699, allocations: 407.1 kB / 376.9 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000258/0.1702, allocations: 111 kB / 377.1 MB, free: 13.4 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001039/0.1712, allocations: 0.9747 MB / 378 MB, free: 12.42 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002496/0.1715, allocations: 191.2 kB / 378.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.782e-05/0.1716, allocations: 32 kB / 378.3 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.538e-05/0.1717, allocations: 36 kB / 378.3 MB, free: 12.17 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001863/0.1719, allocations: 163.4 kB / 378.4 MB, free: 12.01 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003103/0.1722, allocations: 294 kB / 378.7 MB, free: 11.72 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001047/0.1732, allocations: 0.9727 MB / 379.7 MB, free: 10.74 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.1733, allocations: 0 / 379.7 MB, free: 10.74 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1733, allocations: 0 / 379.7 MB, free: 10.74 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.12e-05/0.1733, allocations: 0 / 379.7 MB, free: 10.74 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.001461/0.1748, allocations: 1.15 MB / 380.9 MB, free: 9.516 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.1748, allocations: 12.03 kB / 380.9 MB, free: 9.504 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001376/0.175, allocations: 84.42 kB / 380.9 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005747/0.1755, allocations: 436.7 kB / 381.4 MB, free: 8.953 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.252e-05/0.1756, allocations: 16.38 kB / 381.4 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.609e-05/0.1757, allocations: 16.38 kB / 381.4 MB, free: 8.922 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006238/0.1763, allocations: 309.5 kB / 381.7 MB, free: 8.613 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.1763, allocations: 0 / 381.7 MB, free: 8.613 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.725e-05/0.1764, allocations: 12 kB / 381.7 MB, free: 8.602 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.1764, allocations: 0 / 381.7 MB, free: 8.602 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004668/0.1769, allocations: 223.8 kB / 381.9 MB, free: 8.383 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001663/0.1785, allocations: 0.8786 MB / 382.8 MB, free: 7.453 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006504/0.1792, allocations: 218.4 kB / 383 MB, free: 7.23 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003416/0.1795, allocations: 164.7 kB / 383.2 MB, free: 7.066 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.93e-05/0.1796, allocations: 4 kB / 383.2 MB, free: 7.062 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007715/0.1804, allocations: 398.1 kB / 383.6 MB, free: 6.637 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.1804, allocations: 0 / 383.6 MB, free: 6.637 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001328/0.1817, allocations: 0.7339 MB / 384.3 MB, free: 5.871 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/0.1819, allocations: 174.2 kB / 384.5 MB, free: 5.664 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001243/0.1831, allocations: 1 MB / 385.5 MB, free: 4.656 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.256e-05/0.1832, allocations: 37.69 kB / 385.5 MB, free: 4.613 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/0.1833, allocations: 165.9 kB / 385.7 MB, free: 4.445 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.438e-05/0.1834, allocations: 59.52 kB / 385.7 MB, free: 4.387 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000212/0.1836, allocations: 165.3 kB / 385.9 MB, free: 4.219 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.1838, allocations: 342.8 kB / 386.2 MB, free: 3.875 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002519/0.184, allocations: 120 kB / 386.4 MB, free: 3.758 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002858/0.1843, allocations: 160.2 kB / 386.5 MB, free: 3.586 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005943/0.1849, allocations: 477.7 kB / 387 MB, free: 3.055 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1849, allocations: 0 / 387 MB, free: 3.055 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000944/0.1859, allocations: 0.5859 MB / 387.6 MB, free: 2.438 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001096/0.186, allocations: 134.8 kB / 387.7 MB, free: 2.281 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.186, allocations: 0 / 387.7 MB, free: 2.281 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.259e-05/0.186, allocations: 4 kB / 387.7 MB, free: 2.277 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.543e-05/0.1861, allocations: 23.98 kB / 387.7 MB, free: 2.254 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.1862, allocations: 4 kB / 387.7 MB, free: 2.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000207/0.1864, allocations: 15.98 kB / 387.7 MB, free: 2.234 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001236/0.1865, allocations: 115.9 kB / 387.9 MB, free: 2.121 MB / 318.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.0005971/0.1871, allocations: 0.5219 MB / 388.4 MB, free: 1.562 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.776e-05/0.1872, allocations: 87.58 kB / 388.5 MB, free: 1.477 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002035/0.1874, allocations: 138.3 kB / 388.6 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.1874, allocations: 0 / 388.6 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1874, allocations: 0 / 388.6 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.1875, allocations: 0 / 388.6 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000726/0.1882, allocations: 0.6373 MB / 389.2 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.1882, allocations: 0 / 389.2 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.634e-05/0.1883, allocations: 16.11 kB / 389.3 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.1883, allocations: 4 kB / 389.3 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.972e-05/0.1883, allocations: 23.98 kB / 389.3 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.1883, allocations: 4 kB / 389.3 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1883, allocations: 7.938 kB / 389.3 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.1894, allocations: 0.6984 MB / 390 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000713/0.1901, allocations: 0.5039 MB / 390.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.1902, allocations: 20 kB / 390.5 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001661/0.1904, allocations: 19.98 kB / 390.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001744/0.1906, allocations: 47.95 kB / 390.6 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001108/0.1907, allocations: 115.9 kB / 390.7 MB, free: 15.13 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009386/0.1917, allocations: 0.7329 MB / 391.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1917, allocations: 0 / 391.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000369/0.192, allocations: 95.89 kB / 391.5 MB, free: 14.31 MB / 334.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.0001892/0.1922, allocations: 134.7 kB / 391.7 MB, free: 14.17 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009203/0.1932, allocations: 0.6576 MB / 392.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1932, allocations: 0 / 392.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005571/0.1937, allocations: 0.5249 MB / 392.8 MB, free: 12.89 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008523/0.1946, allocations: 199.7 kB / 393 MB, free: 12.69 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002064/0.1967, allocations: 1.339 MB / 394.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006775/0.1974, allocations: 0.9675 MB / 395.3 MB, free: 10.33 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000342/0.1977, allocations: 165.2 kB / 395.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001648/0.1979, allocations: 75.56 kB / 395.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of SimCode: time 5.82e-07/0.1979, allocations: 0 / 395.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of Templates: time 0.01409/0.212, allocations: 7.73 MB / 403.3 MB, free: 2.312 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1)