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.0133/0.0133, allocations: 100.9 kB / 15.73 MB, free: 6.473 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.002633/0.002633, allocations: 195 kB / 16.67 MB, free: 6.379 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.969/1.969, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.001237/0.001237, allocations: 50.23 kB / 326.5 MB, free: 14.25 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1241, 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.004185/0.1283, allocations: 2.103 MB / 375.3 MB, free: 15.21 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00306/0.1314, allocations: 1.053 MB / 376.3 MB, free: 14.15 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001749/0.1316, allocations: 4 kB / 376.3 MB, free: 14.15 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002672/0.132, allocations: 35.59 kB / 376.4 MB, free: 14.11 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001414/0.1321, allocations: 55.56 kB / 376.4 MB, free: 14.06 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005738/0.1327, allocations: 123.8 kB / 376.5 MB, free: 13.94 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006731/0.1334, allocations: 415 kB / 376.9 MB, free: 13.53 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003316/0.1337, allocations: 112.1 kB / 377.1 MB, free: 13.42 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001209/0.1349, allocations: 0.9436 MB / 378 MB, free: 12.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002998/0.1353, allocations: 195.2 kB / 378.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.746e-05/0.1354, allocations: 32 kB / 378.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.957e-05/0.1354, allocations: 36 kB / 378.3 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002518/0.1357, allocations: 167.3 kB / 378.4 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000316/0.136, allocations: 290 kB / 378.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008453/0.1369, allocations: 0.9772 MB / 379.7 MB, free: 10.79 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1369, allocations: 0 / 379.7 MB, free: 10.79 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1369, allocations: 0 / 379.7 MB, free: 10.79 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.1369, allocations: 3.938 kB / 379.7 MB, free: 10.79 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.001332/0.1383, allocations: 1.111 MB / 380.8 MB, free: 9.598 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.928e-05/0.1383, allocations: 12.03 kB / 380.8 MB, free: 9.586 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001585/0.1385, allocations: 80 kB / 380.9 MB, free: 9.508 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006599/0.1392, allocations: 432 kB / 381.3 MB, free: 9.043 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.782e-05/0.1392, allocations: 12.38 kB / 381.3 MB, free: 9.031 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.508e-05/0.1393, allocations: 20.38 kB / 381.3 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007749/0.1401, allocations: 309.5 kB / 381.6 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.856e-05/0.1401, allocations: 0 / 381.6 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.168e-05/0.1402, allocations: 15.92 kB / 381.7 MB, free: 8.688 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.1402, allocations: 4 kB / 381.7 MB, free: 8.684 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004852/0.1407, allocations: 215.9 kB / 381.9 MB, free: 8.473 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001591/0.1423, allocations: 0.8824 MB / 382.8 MB, free: 7.539 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004749/0.1428, allocations: 214.5 kB / 383 MB, free: 7.32 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003083/0.1431, allocations: 160.8 kB / 383.1 MB, free: 7.16 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.219e-05/0.1431, allocations: 0 / 383.1 MB, free: 7.16 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007226/0.1439, allocations: 393.9 kB / 383.5 MB, free: 6.738 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.673e-06/0.1439, allocations: 0 / 383.5 MB, free: 6.738 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001435/0.1453, allocations: 0.7335 MB / 384.2 MB, free: 5.973 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001635/0.1455, allocations: 178.2 kB / 384.4 MB, free: 5.762 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001466/0.147, allocations: 0.9922 MB / 385.4 MB, free: 4.762 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.114e-05/0.147, allocations: 45.62 kB / 385.4 MB, free: 4.711 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001785/0.1472, allocations: 153.8 kB / 385.6 MB, free: 4.555 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.049e-05/0.1473, allocations: 55.34 kB / 385.6 MB, free: 4.5 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002826/0.1476, allocations: 165.1 kB / 385.8 MB, free: 4.332 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002166/0.1479, allocations: 342.8 kB / 386.1 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002937/0.1482, allocations: 124 kB / 386.3 MB, free: 3.867 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002929/0.1485, allocations: 160.2 kB / 386.4 MB, free: 3.695 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005664/0.1491, allocations: 477.7 kB / 386.9 MB, free: 3.164 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.1491, allocations: 4 kB / 386.9 MB, free: 3.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009085/0.15, allocations: 0.5858 MB / 387.5 MB, free: 2.543 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.341e-05/0.1501, allocations: 134.8 kB / 387.6 MB, free: 2.387 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.1501, allocations: 0 / 387.6 MB, free: 2.387 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.909e-05/0.1501, allocations: 4 kB / 387.6 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/0.1502, allocations: 15.92 kB / 387.6 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.1503, allocations: 7.984 kB / 387.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002251/0.1505, allocations: 19.98 kB / 387.7 MB, free: 2.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001144/0.1506, allocations: 111.9 kB / 387.8 MB, free: 2.23 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.0006019/0.1512, allocations: 0.5415 MB / 388.3 MB, free: 1.652 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/0.1513, allocations: 83 kB / 388.4 MB, free: 1.57 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001917/0.1515, allocations: 130.4 kB / 388.5 MB, free: 1.441 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.1515, allocations: 4 kB / 388.5 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.1515, allocations: 0 / 388.5 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.1516, allocations: 0 / 388.5 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007196/0.1523, allocations: 0.6296 MB / 389.2 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1523, allocations: 4 kB / 389.2 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.521e-05/0.1523, allocations: 11.98 kB / 389.2 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.195e-06/0.1524, allocations: 0 / 389.2 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.166e-05/0.1524, allocations: 27.98 kB / 389.2 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.1524, allocations: 0 / 389.2 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1524, allocations: 0 / 389.2 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.1535, allocations: 0.7017 MB / 389.9 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006584/0.1541, allocations: 0.4957 MB / 390.4 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.622e-05/0.1542, allocations: 24 kB / 390.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001686/0.1544, allocations: 15.98 kB / 390.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001532/0.1546, allocations: 47.95 kB / 390.5 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001115/0.1547, allocations: 119.9 kB / 390.6 MB, free: 15.25 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000895/0.1556, allocations: 0.729 MB / 391.3 MB, free: 14.53 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1556, allocations: 0 / 391.3 MB, free: 14.53 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003935/0.156, allocations: 87.84 kB / 391.4 MB, free: 14.44 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.000211/0.1562, allocations: 138.7 kB / 391.5 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009676/0.1572, allocations: 0.6575 MB / 392.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.1572, allocations: 4 kB / 392.2 MB, free: 13.58 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005583/0.1578, allocations: 0.521 MB / 392.7 MB, free: 13.01 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008497/0.1587, allocations: 204.1 kB / 392.9 MB, free: 12.81 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002177/0.1608, allocations: 1.325 MB / 394.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006964/0.1616, allocations: 0.9638 MB / 395.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004231/0.162, allocations: 165.4 kB / 395.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001921/0.1622, allocations: 75.28 kB / 395.4 MB, free: 10.23 MB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1622, allocations: 4 kB / 395.5 MB, free: 10.23 MB / 334.1 MB Notification: Performance of Templates: time 0.01348/0.1757, allocations: 7.738 MB / 403.2 MB, free: 2.441 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)