Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.01055/0.01055, allocations: 102.4 kB / 15.73 MB, free: 6.438 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.001846/0.001846, allocations: 194.3 kB / 16.67 MB, free: 6.355 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.962/1.962, allocations: 205.1 MB / 222.6 MB, free: 4.492 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.001559/0.001559, allocations: 51.17 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1238, allocations: 46.62 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003564/0.1274, allocations: 2.107 MB / 375.3 MB, free: 15.21 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002688/0.1302, allocations: 1.061 MB / 376.3 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002596/0.1304, allocations: 4 kB / 376.3 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000244/0.1307, allocations: 31.66 kB / 376.4 MB, free: 14.1 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002467/0.131, allocations: 67.5 kB / 376.4 MB, free: 14.04 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005485/0.1316, allocations: 123.8 kB / 376.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006562/0.1322, allocations: 407.1 kB / 376.9 MB, free: 13.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003136/0.1325, allocations: 115 kB / 377.1 MB, free: 13.4 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00116/0.1337, allocations: 0.9709 MB / 378 MB, free: 12.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004108/0.1341, allocations: 191.2 kB / 378.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.438e-05/0.1342, allocations: 36 kB / 378.3 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.591e-05/0.1343, allocations: 32 kB / 378.3 MB, free: 12.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002784/0.1346, allocations: 163.4 kB / 378.4 MB, free: 12.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003913/0.135, allocations: 290.1 kB / 378.7 MB, free: 11.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001165/0.1362, allocations: 0.9694 MB / 379.7 MB, free: 10.76 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1362, allocations: 0 / 379.7 MB, free: 10.76 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1362, allocations: 0 / 379.7 MB, free: 10.76 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.306e-05/0.1362, allocations: 4 kB / 379.7 MB, free: 10.75 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.001462/0.1377, allocations: 1.115 MB / 380.8 MB, free: 9.562 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/0.1378, allocations: 8.031 kB / 380.8 MB, free: 9.555 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000131/0.1379, allocations: 84 kB / 380.9 MB, free: 9.473 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005407/0.1384, allocations: 431.9 kB / 381.3 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.591e-05/0.1385, allocations: 16.38 kB / 381.3 MB, free: 8.992 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.878e-05/0.1386, allocations: 24.36 kB / 381.4 MB, free: 8.969 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006661/0.1392, allocations: 301.5 kB / 381.7 MB, free: 8.668 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.1392, allocations: 0 / 381.7 MB, free: 8.668 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.541e-05/0.1393, allocations: 23.97 kB / 381.7 MB, free: 8.645 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.1393, allocations: 4 kB / 381.7 MB, free: 8.641 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000507/0.1398, allocations: 207.9 kB / 381.9 MB, free: 8.438 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001443/0.1413, allocations: 0.8862 MB / 382.8 MB, free: 7.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004599/0.1418, allocations: 214.5 kB / 383 MB, free: 7.281 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002857/0.1421, allocations: 168.8 kB / 383.2 MB, free: 7.113 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.121e-05/0.1421, allocations: 0 / 383.2 MB, free: 7.113 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006761/0.1428, allocations: 385.9 kB / 383.5 MB, free: 6.699 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.603e-06/0.1428, allocations: 0 / 383.5 MB, free: 6.699 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001374/0.1442, allocations: 0.7373 MB / 384.3 MB, free: 5.93 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.712e-05/0.1443, allocations: 174.2 kB / 384.4 MB, free: 5.723 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001445/0.1457, allocations: 1.004 MB / 385.4 MB, free: 4.711 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.748e-05/0.1458, allocations: 37.7 kB / 385.5 MB, free: 4.668 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001301/0.1459, allocations: 157.8 kB / 385.6 MB, free: 4.508 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.504e-05/0.146, allocations: 63.28 kB / 385.7 MB, free: 4.445 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002563/0.1463, allocations: 161.1 kB / 385.9 MB, free: 4.281 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.1465, allocations: 338.8 kB / 386.2 MB, free: 3.941 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003334/0.1468, allocations: 123.9 kB / 386.3 MB, free: 3.82 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002857/0.1471, allocations: 164.2 kB / 386.5 MB, free: 3.645 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006122/0.1477, allocations: 469.8 kB / 386.9 MB, free: 3.121 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.1477, allocations: 0 / 386.9 MB, free: 3.121 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001053/0.1488, allocations: 0.5896 MB / 387.5 MB, free: 2.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001009/0.1489, allocations: 131.9 kB / 387.6 MB, free: 2.348 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.1489, allocations: 64 / 387.6 MB, free: 2.348 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.1489, allocations: 8 kB / 387.6 MB, free: 2.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.587e-05/0.149, allocations: 19.98 kB / 387.7 MB, free: 2.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.1491, allocations: 0 / 387.7 MB, free: 2.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002135/0.1493, allocations: 15.98 kB / 387.7 MB, free: 2.305 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000146/0.1494, allocations: 111.9 kB / 387.8 MB, free: 2.195 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.0006348/0.1501, allocations: 0.5453 MB / 388.3 MB, free: 1.613 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.95e-05/0.1502, allocations: 79.06 kB / 388.4 MB, free: 1.535 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000216/0.1504, allocations: 130.4 kB / 388.5 MB, free: 1.406 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.1504, allocations: 0 / 388.5 MB, free: 1.406 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.1504, allocations: 0 / 388.5 MB, free: 1.406 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.1504, allocations: 3.984 kB / 388.5 MB, free: 1.402 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000736/0.1512, allocations: 0.6257 MB / 389.2 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1512, allocations: 0 / 389.2 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.167e-05/0.1513, allocations: 15.98 kB / 389.2 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.1513, allocations: 0 / 389.2 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.456e-05/0.1513, allocations: 31.98 kB / 389.2 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1513, allocations: 0 / 389.2 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.1513, allocations: 96 / 389.2 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001159/0.1525, allocations: 0.7056 MB / 389.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007139/0.1532, allocations: 0.4919 MB / 390.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001218/0.1534, allocations: 20 kB / 390.4 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001755/0.1536, allocations: 19.98 kB / 390.5 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000167/0.1537, allocations: 51.95 kB / 390.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/0.1539, allocations: 119.9 kB / 390.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001131/0.155, allocations: 0.7251 MB / 391.3 MB, free: 14.49 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.155, allocations: 0 / 391.3 MB, free: 14.49 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003815/0.1554, allocations: 95.84 kB / 391.4 MB, free: 14.4 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.0001901/0.1556, allocations: 138.7 kB / 391.6 MB, free: 14.25 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009548/0.1566, allocations: 0.6539 MB / 392.2 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.1566, allocations: 0 / 392.2 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005762/0.1572, allocations: 0.5249 MB / 392.8 MB, free: 12.97 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000862/0.158, allocations: 207.8 kB / 393 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002305/0.1604, allocations: 1.321 MB / 394.3 MB, free: 11.42 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001031/0.1614, allocations: 0.9717 MB / 395.3 MB, free: 10.42 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003933/0.1618, allocations: 161.1 kB / 395.4 MB, free: 10.26 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001911/0.162, allocations: 75.28 kB / 395.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of SimCode: time 8.62e-07/0.162, allocations: 0 / 395.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of Templates: time 0.01556/0.1776, allocations: 7.734 MB / 403.2 MB, free: 2.406 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1)