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.002549/0.002549, allocations: 113 kB / 16.62 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.001471/0.001471, allocations: 189.8 kB / 17.55 MB, free: 5.801 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.985/1.985, allocations: 205.1 MB / 223.4 MB, free: 12.36 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.001205/0.001205, allocations: 51.92 kB / 279.5 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.139, allocations: 46.63 MB / 326.1 MB, free: 4.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.005283/0.1443, allocations: 2.152 MB / 328.3 MB, free: 2.605 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002861/0.1473, allocations: 1.046 MB / 329.3 MB, free: 1.551 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001555/0.1474, allocations: 3.938 kB / 329.3 MB, free: 1.547 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002881/0.1478, allocations: 31.78 kB / 329.4 MB, free: 1.516 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001461/0.1479, allocations: 43.7 kB / 329.4 MB, free: 1.473 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005161/0.1485, allocations: 107.8 kB / 329.5 MB, free: 1.367 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008101/0.1493, allocations: 419.1 kB / 329.9 MB, free: 0.957 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002777/0.1496, allocations: 103.1 kB / 330 MB, free: 0.8633 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001099/0.1507, allocations: 0.9397 MB / 331 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003086/0.151, allocations: 195.2 kB / 331.2 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001029/0.1511, allocations: 36 kB / 331.2 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.685e-05/0.1512, allocations: 35.94 kB / 331.2 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000221/0.1514, allocations: 167.3 kB / 331.4 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003333/0.1518, allocations: 286.1 kB / 331.7 MB, free: 15.21 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001128/0.1529, allocations: 0.9619 MB / 332.6 MB, free: 14.25 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.1529, allocations: 0 / 332.6 MB, free: 14.25 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.767e-06/0.153, allocations: 0 / 332.6 MB, free: 14.25 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.307e-05/0.153, allocations: 8 kB / 332.6 MB, free: 14.24 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.001801/0.1548, allocations: 1.122 MB / 333.8 MB, free: 13.04 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.896e-05/0.1549, allocations: 8.031 kB / 333.8 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001706/0.1551, allocations: 80 kB / 333.8 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006476/0.1557, allocations: 428 kB / 334.3 MB, free: 12.5 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.935e-05/0.1558, allocations: 16.38 kB / 334.3 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.709e-05/0.1558, allocations: 20.38 kB / 334.3 MB, free: 12.46 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008048/0.1567, allocations: 313.5 kB / 334.6 MB, free: 12.15 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.1567, allocations: 0 / 334.6 MB, free: 12.15 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.657e-05/0.1568, allocations: 19.97 kB / 334.6 MB, free: 12.13 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.1568, allocations: 4 kB / 334.6 MB, free: 12.13 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004924/0.1573, allocations: 203.9 kB / 334.8 MB, free: 11.93 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001709/0.159, allocations: 0.8824 MB / 335.7 MB, free: 11 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005287/0.1595, allocations: 214.5 kB / 335.9 MB, free: 10.78 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003238/0.1599, allocations: 156.8 kB / 336.1 MB, free: 10.62 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.998e-05/0.1599, allocations: 4 kB / 336.1 MB, free: 10.62 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001119/0.161, allocations: 389.9 kB / 336.5 MB, free: 10.2 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.913e-06/0.1611, allocations: 0 / 336.5 MB, free: 10.2 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001689/0.1627, allocations: 0.7374 MB / 337.2 MB, free: 9.43 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001335/0.1629, allocations: 170.2 kB / 337.4 MB, free: 9.227 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001479/0.1644, allocations: 1.004 MB / 338.4 MB, free: 8.211 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.087e-05/0.1644, allocations: 33.7 kB / 338.4 MB, free: 8.172 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.1646, allocations: 153.8 kB / 338.6 MB, free: 8.02 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.672e-05/0.1647, allocations: 59.34 kB / 338.6 MB, free: 7.961 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003426/0.165, allocations: 169 kB / 338.8 MB, free: 7.789 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000317/0.1654, allocations: 342.8 kB / 339.1 MB, free: 7.445 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002837/0.1656, allocations: 127.9 kB / 339.2 MB, free: 7.32 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004236/0.1661, allocations: 164.2 kB / 339.4 MB, free: 7.145 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008374/0.1669, allocations: 477.8 kB / 339.9 MB, free: 6.613 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.1669, allocations: 0 / 339.9 MB, free: 6.613 MB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001119/0.1681, allocations: 0.5819 MB / 340.4 MB, free: 6 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001613/0.1682, allocations: 134.8 kB / 340.6 MB, free: 5.844 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/0.1683, allocations: 4.078 kB / 340.6 MB, free: 5.84 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.683e-05/0.1683, allocations: 7.938 kB / 340.6 MB, free: 5.832 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.1684, allocations: 12 kB / 340.6 MB, free: 5.82 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/0.1684, allocations: 4 kB / 340.6 MB, free: 5.816 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003419/0.1688, allocations: 35.94 kB / 340.6 MB, free: 5.781 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001387/0.1689, allocations: 123.8 kB / 340.8 MB, free: 5.66 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.0007078/0.1697, allocations: 0.5259 MB / 341.3 MB, free: 5.098 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001171/0.1698, allocations: 79.06 kB / 341.4 MB, free: 5.02 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002226/0.17, allocations: 134.4 kB / 341.5 MB, free: 4.875 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.17, allocations: 4 kB / 341.5 MB, free: 4.871 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.17, allocations: 0 / 341.5 MB, free: 4.871 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.1701, allocations: 0 / 341.5 MB, free: 4.871 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008979/0.171, allocations: 0.6297 MB / 342.1 MB, free: 4.191 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.171, allocations: 0 / 342.1 MB, free: 4.191 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.325e-05/0.171, allocations: 8 kB / 342.1 MB, free: 4.184 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.1711, allocations: 0 / 342.1 MB, free: 4.184 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.603e-05/0.1711, allocations: 27.98 kB / 342.2 MB, free: 4.156 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.1712, allocations: 0 / 342.2 MB, free: 4.156 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1712, allocations: 3.938 kB / 342.2 MB, free: 4.152 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001107/0.1723, allocations: 0.7063 MB / 342.9 MB, free: 3.402 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006587/0.1729, allocations: 495.7 kB / 343.4 MB, free: 2.898 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001021/0.1731, allocations: 20 kB / 343.4 MB, free: 2.879 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002015/0.1733, allocations: 27.97 kB / 343.4 MB, free: 2.852 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001832/0.1735, allocations: 47.95 kB / 343.4 MB, free: 2.805 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001362/0.1736, allocations: 115.9 kB / 343.6 MB, free: 2.691 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0009806/0.1746, allocations: 0.7328 MB / 344.3 MB, free: 1.961 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1746, allocations: 7.938 kB / 344.3 MB, free: 1.953 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004064/0.175, allocations: 95.84 kB / 344.4 MB, free: 1.859 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.000195/0.1752, allocations: 130.7 kB / 344.5 MB, free: 1.723 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009744/0.1762, allocations: 0.6656 MB / 345.2 MB, free: 1.008 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1762, allocations: 0 / 345.2 MB, free: 1.008 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005942/0.1768, allocations: 0.5327 MB / 345.7 MB, free: 436 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008326/0.1777, allocations: 195.2 kB / 345.9 MB, free: 244 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00224/0.1799, allocations: 1.556 MB / 347.5 MB, free: 14.65 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006566/0.1806, allocations: 0.9675 MB / 348.4 MB, free: 13.65 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003546/0.1809, allocations: 169.2 kB / 348.6 MB, free: 13.49 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001568/0.1811, allocations: 71.3 kB / 348.7 MB, free: 13.42 MB / 302.1 MB Notification: Performance of SimCode: time 1.042e-06/0.1811, allocations: 0 / 348.7 MB, free: 13.42 MB / 302.1 MB Notification: Performance of Templates: time 0.01164/0.1928, allocations: 7.64 MB / 356.3 MB, free: 5.746 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)