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.01285/0.01285, allocations: 99.41 kB / 15.73 MB, free: 6.453 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.001916/0.001916, allocations: 190.2 kB / 16.67 MB, free: 6.367 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.889/1.889, allocations: 205.1 MB / 222.5 MB, free: 4.531 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.00118/0.00118, allocations: 54.56 kB / 326.5 MB, free: 14.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1496/0.1508, allocations: 46.62 MB / 373.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.004224/0.1551, allocations: 2.107 MB / 375.3 MB, free: 15.21 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002967/0.1581, allocations: 1.049 MB / 376.3 MB, free: 14.15 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001566/0.1583, allocations: 3.938 kB / 376.3 MB, free: 14.15 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002375/0.1586, allocations: 39.64 kB / 376.4 MB, free: 14.11 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001369/0.1587, allocations: 59.52 kB / 376.4 MB, free: 14.05 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005475/0.1593, allocations: 123.8 kB / 376.5 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005699/0.1599, allocations: 415 kB / 376.9 MB, free: 13.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00028/0.1602, allocations: 115 kB / 377.1 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001034/0.1612, allocations: 0.9631 MB / 378 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002746/0.1615, allocations: 187.2 kB / 378.2 MB, free: 12.26 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.804e-05/0.1616, allocations: 36 kB / 378.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.174e-05/0.1617, allocations: 39.94 kB / 378.3 MB, free: 12.19 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001635/0.1618, allocations: 159.4 kB / 378.4 MB, free: 12.03 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002727/0.1621, allocations: 290.1 kB / 378.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001005/0.1631, allocations: 0.9772 MB / 379.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.656e-06/0.1632, allocations: 0 / 379.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.025e-06/0.1632, allocations: 4 kB / 379.7 MB, free: 10.76 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.038e-05/0.1632, allocations: 0 / 379.7 MB, free: 10.76 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.001494/0.1647, allocations: 1.111 MB / 380.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.536e-05/0.1648, allocations: 8.031 kB / 380.8 MB, free: 9.566 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000146/0.1649, allocations: 80 kB / 380.9 MB, free: 9.488 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006175/0.1655, allocations: 428 kB / 381.3 MB, free: 9.027 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.528e-05/0.1656, allocations: 16.38 kB / 381.3 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.896e-05/0.1657, allocations: 20.38 kB / 381.4 MB, free: 8.992 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000697/0.1664, allocations: 321.5 kB / 381.7 MB, free: 8.672 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.1664, allocations: 0 / 381.7 MB, free: 8.672 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.4e-05/0.1665, allocations: 8 kB / 381.7 MB, free: 8.664 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.639e-05/0.1665, allocations: 8 kB / 381.7 MB, free: 8.656 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004539/0.167, allocations: 207.9 kB / 381.9 MB, free: 8.453 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001603/0.1686, allocations: 0.8862 MB / 382.8 MB, free: 7.516 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000464/0.1691, allocations: 222.5 kB / 383 MB, free: 7.289 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002858/0.1694, allocations: 152.8 kB / 383.1 MB, free: 7.137 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.051e-05/0.1694, allocations: 7.922 kB / 383.1 MB, free: 7.129 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007004/0.1701, allocations: 382 kB / 383.5 MB, free: 6.719 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.254e-06/0.1701, allocations: 0 / 383.5 MB, free: 6.719 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001471/0.1716, allocations: 0.7412 MB / 384.3 MB, free: 5.945 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/0.1717, allocations: 178.2 kB / 384.4 MB, free: 5.734 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001525/0.1733, allocations: 1 MB / 385.4 MB, free: 4.727 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.717e-05/0.1733, allocations: 37.7 kB / 385.5 MB, free: 4.684 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.1735, allocations: 157.8 kB / 385.6 MB, free: 4.523 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.715e-05/0.1736, allocations: 51.36 kB / 385.7 MB, free: 4.473 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002451/0.1738, allocations: 161.1 kB / 385.8 MB, free: 4.309 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.174, allocations: 346.7 kB / 386.2 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002856/0.1743, allocations: 120 kB / 386.3 MB, free: 3.844 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003287/0.1747, allocations: 164.3 kB / 386.4 MB, free: 3.668 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006234/0.1753, allocations: 485.6 kB / 386.9 MB, free: 3.129 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.1753, allocations: 0 / 386.9 MB, free: 3.129 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001007/0.1763, allocations: 0.5857 MB / 387.5 MB, free: 2.512 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001156/0.1765, allocations: 138.8 kB / 387.6 MB, free: 2.352 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.228e-06/0.1765, allocations: 4 kB / 387.6 MB, free: 2.348 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.619e-05/0.1765, allocations: 0 / 387.6 MB, free: 2.348 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001115/0.1766, allocations: 12 kB / 387.7 MB, free: 2.336 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.1766, allocations: 4 kB / 387.7 MB, free: 2.332 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002489/0.1769, allocations: 15.98 kB / 387.7 MB, free: 2.316 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001346/0.177, allocations: 119.9 kB / 387.8 MB, free: 2.199 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.0007127/0.1778, allocations: 0.5375 MB / 388.3 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001187/0.1779, allocations: 79.06 kB / 388.4 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002435/0.1781, allocations: 130.4 kB / 388.5 MB, free: 1.418 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.1782, allocations: 0 / 388.5 MB, free: 1.418 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.1782, allocations: 4 kB / 388.5 MB, free: 1.414 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.1782, allocations: 0 / 388.5 MB, free: 1.414 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008005/0.179, allocations: 0.6296 MB / 389.2 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.179, allocations: 4 kB / 389.2 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.289e-05/0.1791, allocations: 8 kB / 389.2 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.167e-06/0.1791, allocations: 0 / 389.2 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.324e-05/0.1791, allocations: 27.98 kB / 389.2 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.1791, allocations: 0 / 389.2 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/0.1792, allocations: 0 / 389.2 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001119/0.1803, allocations: 0.7056 MB / 389.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007478/0.181, allocations: 0.4919 MB / 390.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000104/0.1812, allocations: 24 kB / 390.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001845/0.1814, allocations: 24.11 kB / 390.5 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002046/0.1816, allocations: 43.95 kB / 390.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000143/0.1817, allocations: 119.9 kB / 390.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001088/0.1828, allocations: 0.7289 MB / 391.3 MB, free: 14.5 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.1828, allocations: 4 kB / 391.3 MB, free: 14.5 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004473/0.1833, allocations: 91.84 kB / 391.4 MB, free: 14.41 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.000216/0.1835, allocations: 138.8 kB / 391.6 MB, free: 14.26 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001039/0.1845, allocations: 0.6575 MB / 392.2 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.1846, allocations: 0 / 392.2 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006099/0.1852, allocations: 0.5249 MB / 392.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009457/0.1861, allocations: 203.9 kB / 393 MB, free: 12.78 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002731/0.1889, allocations: 1.321 MB / 394.3 MB, free: 11.43 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007957/0.1897, allocations: 0.9638 MB / 395.2 MB, free: 10.44 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004636/0.1902, allocations: 169.1 kB / 395.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000194/0.1904, allocations: 71.28 kB / 395.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of SimCode: time 1.593e-06/0.1904, allocations: 0 / 395.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of Templates: time 0.01362/0.204, allocations: 7.89 MB / 403.4 MB, free: 2.266 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)