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.0009398/0.0009399, allocations: 95.69 kB / 16.32 MB, free: 5.562 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.0009875/0.0009875, allocations: 180.9 kB / 17.21 MB, free: 5.484 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.784/1.784, allocations: 205.4 MB / 223.4 MB, free: 13.15 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.0005763/0.0005766, allocations: 19.98 kB / 280.1 MB, free: 3.723 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.134, allocations: 47.57 MB / 327.7 MB, free: 4.082 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.00269/0.1367, allocations: 1.752 MB / 329.5 MB, free: 2.316 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002436/0.1392, allocations: 1.011 MB / 330.5 MB, free: 1.297 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001257/0.1393, allocations: 0 / 330.5 MB, free: 1.297 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001742/0.1395, allocations: 23.78 kB / 330.5 MB, free: 1.273 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001368/0.1397, allocations: 43.62 kB / 330.5 MB, free: 1.23 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004074/0.1401, allocations: 79.91 kB / 330.6 MB, free: 1.152 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004236/0.1405, allocations: 319.1 kB / 330.9 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002409/0.1408, allocations: 88.27 kB / 331 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001019/0.1418, allocations: 0.7837 MB / 331.8 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002367/0.1421, allocations: 179.5 kB / 332 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.697e-05/0.1421, allocations: 8 kB / 332 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.712e-05/0.1422, allocations: 11.94 kB / 332 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000179/0.1424, allocations: 155.4 kB / 332.2 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001416/0.1425, allocations: 137.3 kB / 332.3 MB, free: 15.48 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007866/0.1433, allocations: 0.7874 MB / 333.1 MB, free: 14.7 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.1433, allocations: 4 kB / 333.1 MB, free: 14.69 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.1433, allocations: 4 kB / 333.1 MB, free: 14.69 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.1433, allocations: 0 / 333.1 MB, free: 14.69 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.001167/0.1445, allocations: 0.9668 MB / 334 MB, free: 13.64 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/0.1446, allocations: 12.03 kB / 334.1 MB, free: 13.63 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001276/0.1447, allocations: 79.06 kB / 334.1 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004862/0.1452, allocations: 407.4 kB / 334.5 MB, free: 13.12 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.207e-05/0.1453, allocations: 19.98 kB / 334.6 MB, free: 13.1 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.076e-05/0.1453, allocations: 16 kB / 334.6 MB, free: 13.08 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006149/0.1459, allocations: 309.1 kB / 334.9 MB, free: 12.77 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.146, allocations: 0 / 334.9 MB, free: 12.77 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.396e-05/0.146, allocations: 11.98 kB / 334.9 MB, free: 12.76 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.146, allocations: 4 kB / 334.9 MB, free: 12.76 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004251/0.1465, allocations: 207.9 kB / 335.1 MB, free: 12.55 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001274/0.1477, allocations: 0.8826 MB / 336 MB, free: 11.62 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004422/0.1482, allocations: 214.5 kB / 336.2 MB, free: 11.4 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002847/0.1485, allocations: 156.8 kB / 336.3 MB, free: 11.25 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.858e-05/0.1485, allocations: 4 kB / 336.3 MB, free: 11.24 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005935/0.1491, allocations: 393.9 kB / 336.7 MB, free: 10.82 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.723e-06/0.1491, allocations: 0 / 336.7 MB, free: 10.82 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001413/0.1506, allocations: 0.7335 MB / 337.5 MB, free: 10.05 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001232/0.1507, allocations: 178.3 kB / 337.6 MB, free: 9.844 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001382/0.1521, allocations: 1 MB / 338.6 MB, free: 8.832 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.863e-05/0.1521, allocations: 33.8 kB / 338.7 MB, free: 8.793 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/0.1523, allocations: 161.6 kB / 338.8 MB, free: 8.633 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.714e-05/0.1524, allocations: 55.34 kB / 338.9 MB, free: 8.578 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.124e-05/0.1524, allocations: 8 kB / 338.9 MB, free: 8.57 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.1526, allocations: 338.8 kB / 339.2 MB, free: 8.23 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002599/0.1529, allocations: 119.9 kB / 339.3 MB, free: 8.113 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003625/0.1532, allocations: 164.2 kB / 339.5 MB, free: 7.938 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003366/0.1536, allocations: 226.7 kB / 339.7 MB, free: 7.691 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.1536, allocations: 0 / 339.7 MB, free: 7.691 MB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009363/0.1545, allocations: 0.5819 MB / 340.3 MB, free: 7.078 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001091/0.1547, allocations: 130.8 kB / 340.4 MB, free: 6.926 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.1547, allocations: 4 kB / 340.4 MB, free: 6.922 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.1547, allocations: 0 / 340.4 MB, free: 6.922 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.1548, allocations: 16.11 kB / 340.4 MB, free: 6.906 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.1548, allocations: 0 / 340.4 MB, free: 6.906 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003002/0.1551, allocations: 55.83 kB / 340.5 MB, free: 6.852 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001299/0.1553, allocations: 111.9 kB / 340.6 MB, free: 6.742 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,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.XOR.G1.auxiliary_n,$whenCondition1,$whenCondition2,$PRE.Adder.XOR.G1.auxiliary_n,$PRE.Adder.XOR.G2.x,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,$whenCondition3,$whenCondition4,$PRE.Adder.AND.G1.auxiliary_n,$PRE.Adder.AND.G2.x,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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006325/0.1559, allocations: 0.5299 MB / 341.1 MB, free: 6.176 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.258e-05/0.156, allocations: 79.06 kB / 341.2 MB, free: 6.098 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002061/0.1562, allocations: 130.4 kB / 341.3 MB, free: 5.961 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.1562, allocations: 4 kB / 341.3 MB, free: 5.957 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.1563, allocations: 0 / 341.3 MB, free: 5.957 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.1563, allocations: 3.984 kB / 341.3 MB, free: 5.953 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007434/0.157, allocations: 0.6258 MB / 342 MB, free: 5.277 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.157, allocations: 0 / 342 MB, free: 5.277 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.655e-05/0.1571, allocations: 15.92 kB / 342 MB, free: 5.262 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.1571, allocations: 0 / 342 MB, free: 5.262 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.847e-05/0.1571, allocations: 23.98 kB / 342 MB, free: 5.238 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.1571, allocations: 0 / 342 MB, free: 5.238 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.1572, allocations: 0 / 342 MB, free: 5.238 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001076/0.1582, allocations: 0.7101 MB / 342.7 MB, free: 4.484 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006429/0.1589, allocations: 0.4919 MB / 343.2 MB, free: 3.973 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.445e-05/0.159, allocations: 20 kB / 343.2 MB, free: 3.953 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.1592, allocations: 31.88 kB / 343.3 MB, free: 3.922 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001624/0.1594, allocations: 55.88 kB / 343.3 MB, free: 3.867 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001216/0.1595, allocations: 115.9 kB / 343.4 MB, free: 3.754 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0009652/0.1605, allocations: 0.7289 MB / 344.2 MB, free: 3.027 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1605, allocations: 3.938 kB / 344.2 MB, free: 3.023 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003658/0.1609, allocations: 91.84 kB / 344.3 MB, free: 2.934 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001993/0.1611, allocations: 146.5 kB / 344.4 MB, free: 2.781 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009313/0.162, allocations: 0.6499 MB / 345 MB, free: 2.082 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.162, allocations: 3.938 kB / 345.1 MB, free: 2.078 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005616/0.1626, allocations: 0.5327 MB / 345.6 MB, free: 1.496 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007481/0.1633, allocations: 163.4 kB / 345.7 MB, free: 1.34 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002275/0.1656, allocations: 1.504 MB / 347.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006839/0.1663, allocations: 0.9678 MB / 348.2 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003582/0.1667, allocations: 161.1 kB / 348.4 MB, free: 14.65 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001781/0.1669, allocations: 67.3 kB / 348.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1669, allocations: 0 / 348.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of Templates: time 0.01149/0.1784, allocations: 6.696 MB / 355.1 MB, free: 7.859 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)