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.009018/0.009019, allocations: 96.11 kB / 15.73 MB, free: 5.988 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.001733/0.001733, allocations: 187.6 kB / 16.67 MB, free: 5.918 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.982/1.982, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.001181/0.001181, allocations: 49.86 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1243, 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.003421/0.1278, allocations: 2.103 MB / 375.3 MB, free: 15.21 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002329/0.1302, allocations: 1.053 MB / 376.3 MB, free: 14.15 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001167/0.1303, allocations: 7.938 kB / 376.3 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001957/0.1305, allocations: 39.64 kB / 376.4 MB, free: 14.11 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001181/0.1306, allocations: 47.58 kB / 376.4 MB, free: 14.06 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004643/0.1311, allocations: 127.8 kB / 376.5 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004974/0.1316, allocations: 411 kB / 376.9 MB, free: 13.53 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002343/0.1319, allocations: 111 kB / 377.1 MB, free: 13.42 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008473/0.1327, allocations: 0.9474 MB / 378 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002301/0.133, allocations: 191.2 kB / 378.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.591e-05/0.1331, allocations: 36 kB / 378.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.77e-05/0.1331, allocations: 32 kB / 378.3 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001678/0.1333, allocations: 171.3 kB / 378.4 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002425/0.1336, allocations: 282.1 kB / 378.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008277/0.1344, allocations: 0.9767 MB / 379.7 MB, free: 10.79 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1344, allocations: 0 / 379.7 MB, free: 10.79 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1344, allocations: 0 / 379.7 MB, free: 10.79 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.587e-06/0.1344, allocations: 7.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.001168/0.1356, allocations: 1.142 MB / 380.8 MB, free: 9.566 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.1357, allocations: 8.031 kB / 380.8 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001165/0.1358, allocations: 84.42 kB / 380.9 MB, free: 9.477 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004213/0.1362, allocations: 436.7 kB / 381.3 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.807e-05/0.1363, allocations: 20.38 kB / 381.4 MB, free: 8.988 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.577e-05/0.1363, allocations: 20.38 kB / 381.4 MB, free: 8.969 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005827/0.1369, allocations: 313.4 kB / 381.7 MB, free: 8.656 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.1369, allocations: 11.98 kB / 381.7 MB, free: 8.645 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.983e-05/0.137, allocations: 8 kB / 381.7 MB, free: 8.637 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.137, allocations: 4 kB / 381.7 MB, free: 8.633 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004264/0.1374, allocations: 207.9 kB / 381.9 MB, free: 8.43 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001147/0.1386, allocations: 0.8825 MB / 382.8 MB, free: 7.496 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004244/0.139, allocations: 214.5 kB / 383 MB, free: 7.277 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002709/0.1393, allocations: 164.8 kB / 383.2 MB, free: 7.113 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.885e-05/0.1393, allocations: 0 / 383.2 MB, free: 7.113 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005873/0.1399, allocations: 398 kB / 383.6 MB, free: 6.688 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.312e-06/0.1399, allocations: 0 / 383.6 MB, free: 6.688 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001288/0.1412, allocations: 0.7378 MB / 384.3 MB, free: 5.918 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.284e-05/0.1413, allocations: 178.2 kB / 384.5 MB, free: 5.707 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001156/0.1425, allocations: 1 MB / 385.5 MB, free: 4.699 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.16e-05/0.1425, allocations: 37.7 kB / 385.5 MB, free: 4.656 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.1427, allocations: 153.9 kB / 385.6 MB, free: 4.5 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.613e-05/0.1427, allocations: 59.58 kB / 385.7 MB, free: 4.441 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001976/0.1429, allocations: 169.3 kB / 385.9 MB, free: 4.27 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.143, allocations: 334.8 kB / 386.2 MB, free: 3.934 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002598/0.1433, allocations: 123.9 kB / 386.3 MB, free: 3.812 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000274/0.1436, allocations: 168.2 kB / 386.5 MB, free: 3.633 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005521/0.1442, allocations: 469.8 kB / 386.9 MB, free: 3.109 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.1442, allocations: 4 kB / 386.9 MB, free: 3.105 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009041/0.1451, allocations: 0.5821 MB / 387.5 MB, free: 2.492 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.089e-05/0.1452, allocations: 130.8 kB / 387.7 MB, free: 2.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.1452, allocations: 8.062 kB / 387.7 MB, free: 2.332 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.1452, allocations: 7.922 kB / 387.7 MB, free: 2.324 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.964e-05/0.1453, allocations: 12 kB / 387.7 MB, free: 2.312 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.575e-06/0.1453, allocations: 3.984 kB / 387.7 MB, free: 2.309 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001977/0.1455, allocations: 23.98 kB / 387.7 MB, free: 2.285 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001202/0.1457, allocations: 111.9 kB / 387.8 MB, free: 2.176 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.0005332/0.1462, allocations: 0.5376 MB / 388.4 MB, free: 1.602 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.1463, allocations: 87.45 kB / 388.4 MB, free: 1.516 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001874/0.1465, allocations: 134.4 kB / 388.6 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.1465, allocations: 0 / 388.6 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.1465, allocations: 0 / 388.6 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.1465, allocations: 0 / 388.6 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006692/0.1472, allocations: 0.6334 MB / 389.2 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.1472, allocations: 0 / 389.2 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.221e-05/0.1473, allocations: 12 kB / 389.2 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.1473, allocations: 4 kB / 389.2 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.649e-05/0.1473, allocations: 23.98 kB / 389.2 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.1473, allocations: 0 / 389.2 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1473, allocations: 0 / 389.2 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001105/0.1484, allocations: 0.7061 MB / 390 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000584/0.149, allocations: 0.5039 MB / 390.5 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.351e-05/0.1491, allocations: 20 kB / 390.5 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001631/0.1493, allocations: 15.98 kB / 390.5 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001502/0.1495, allocations: 51.95 kB / 390.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001171/0.1496, allocations: 116 kB / 390.7 MB, free: 15.19 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008676/0.1505, allocations: 0.7289 MB / 391.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1505, allocations: 0 / 391.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003361/0.1508, allocations: 95.89 kB / 391.5 MB, free: 14.37 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.0001775/0.151, allocations: 130.8 kB / 391.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008687/0.1519, allocations: 0.6653 MB / 392.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1519, allocations: 0 / 392.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005482/0.1524, allocations: 0.5288 MB / 392.8 MB, free: 12.94 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000829/0.1533, allocations: 203.7 kB / 393 MB, free: 12.74 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002037/0.1553, allocations: 1.343 MB / 394.3 MB, free: 11.37 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008171/0.1562, allocations: 0.9597 MB / 395.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003174/0.1565, allocations: 169.5 kB / 395.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002801/0.1568, allocations: 79.28 kB / 395.5 MB, free: 10.13 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1568, allocations: 0 / 395.5 MB, free: 10.13 MB / 334.1 MB Notification: Performance of Templates: time 0.01304/0.1698, allocations: 7.726 MB / 403.3 MB, free: 2.359 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)