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.001539/0.001539, allocations: 106.4 kB / 17.06 MB, free: 6.027 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.001723/0.001723, allocations: 195 kB / 18 MB, free: 5.105 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.944/1.944, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.001158/0.001159, allocations: 51.92 kB / 327.9 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1286, allocations: 46.62 MB / 374.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003713/0.1324, allocations: 2.106 MB / 376.6 MB, free: 2.457 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002807/0.1352, allocations: 1.065 MB / 377.7 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001457/0.1354, allocations: 4 kB / 377.7 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002717/0.1357, allocations: 35.66 kB / 377.7 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000126/0.1358, allocations: 43.53 kB / 377.7 MB, free: 1.301 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005456/0.1364, allocations: 127.8 kB / 377.9 MB, free: 1.176 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006509/0.137, allocations: 411.1 kB / 378.3 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003282/0.1374, allocations: 107 kB / 378.4 MB, free: 0.668 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2962/0.4336, allocations: 0.9639 MB / 379.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003765/0.434, allocations: 193.4 kB / 379.5 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000103/0.4341, allocations: 39.53 kB / 379.6 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.771e-05/0.4342, allocations: 34.47 kB / 379.6 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000213/0.4344, allocations: 159.2 kB / 379.8 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002888/0.4347, allocations: 289.9 kB / 380 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0013/0.436, allocations: 0.9809 MB / 381 MB, free: 9.988 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.436, allocations: 0 / 381 MB, free: 9.988 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.436, allocations: 0.5312 kB / 381 MB, free: 9.988 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.131e-05/0.4361, allocations: 0 / 381 MB, free: 9.988 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.001484/0.4375, allocations: 1.119 MB / 382.1 MB, free: 9.191 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.709e-05/0.4376, allocations: 13.16 kB / 382.1 MB, free: 9.191 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001842/0.4378, allocations: 85.09 kB / 382.2 MB, free: 9.148 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006111/0.4384, allocations: 426.7 kB / 382.6 MB, free: 8.836 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.349e-05/0.4385, allocations: 18.53 kB / 382.7 MB, free: 8.836 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.883e-05/0.4385, allocations: 18.97 kB / 382.7 MB, free: 8.836 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009228/0.4395, allocations: 297.7 kB / 383 MB, free: 8.801 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.01e-05/0.4395, allocations: 3.938 kB / 383 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.709e-05/0.4396, allocations: 9.312 kB / 383 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.469e-05/0.4396, allocations: 6.656 kB / 383 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000611/0.4402, allocations: 212.9 kB / 383.2 MB, free: 8.793 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002317/0.4425, allocations: 0.8837 MB / 384.1 MB, free: 8.461 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005686/0.4431, allocations: 218.7 kB / 384.3 MB, free: 8.438 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003278/0.4435, allocations: 157.8 kB / 384.5 MB, free: 8.43 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.995e-05/0.4435, allocations: 1.312 kB / 384.5 MB, free: 8.43 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007245/0.4442, allocations: 387.6 kB / 384.8 MB, free: 8.258 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.864e-06/0.4442, allocations: 0 / 384.8 MB, free: 8.258 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001576/0.4458, allocations: 0.7388 MB / 385.6 MB, free: 7.973 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.4459, allocations: 176.3 kB / 385.7 MB, free: 7.777 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001627/0.4476, allocations: 1.001 MB / 386.7 MB, free: 7.273 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.735e-05/0.4476, allocations: 36.36 kB / 386.8 MB, free: 7.238 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.4478, allocations: 159.1 kB / 386.9 MB, free: 7.105 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.22e-05/0.4479, allocations: 57.59 kB / 387 MB, free: 7.07 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002699/0.4481, allocations: 161.1 kB / 387.2 MB, free: 6.988 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.539e-05/0.4482, allocations: 343.9 kB / 387.5 MB, free: 6.66 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002883/0.4485, allocations: 120.7 kB / 387.6 MB, free: 6.617 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003226/0.4489, allocations: 163.9 kB / 387.8 MB, free: 6.527 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005898/0.4495, allocations: 480.5 kB / 388.2 MB, free: 6.145 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.4495, allocations: 0 / 388.2 MB, free: 6.145 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001063/0.4505, allocations: 0.5829 MB / 388.8 MB, free: 5.852 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001054/0.4507, allocations: 137.2 kB / 389 MB, free: 5.715 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.4507, allocations: 2.156 kB / 389 MB, free: 5.715 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.256e-05/0.4507, allocations: 2.969 kB / 389 MB, free: 5.715 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.4508, allocations: 17.06 kB / 389 MB, free: 5.715 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.4509, allocations: 5.188 kB / 389 MB, free: 5.711 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002476/0.4511, allocations: 21.91 kB / 389 MB, free: 5.707 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001866/0.4513, allocations: 119.1 kB / 389.1 MB, free: 5.695 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.0007005/0.452, allocations: 0.5309 MB / 389.6 MB, free: 5.312 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.4521, allocations: 86.06 kB / 389.7 MB, free: 5.27 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002185/0.4524, allocations: 127 kB / 389.9 MB, free: 5.191 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.4524, allocations: 96 / 389.9 MB, free: 5.191 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.4524, allocations: 4.547 kB / 389.9 MB, free: 5.188 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.4524, allocations: 1.953 kB / 389.9 MB, free: 5.188 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001072/0.4535, allocations: 0.6301 MB / 390.5 MB, free: 4.785 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.4535, allocations: 0 / 390.5 MB, free: 4.785 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.312e-05/0.4535, allocations: 9.812 kB / 390.5 MB, free: 4.785 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.4535, allocations: 0 / 390.5 MB, free: 4.785 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.694e-05/0.4536, allocations: 29.44 kB / 390.5 MB, free: 4.781 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.4536, allocations: 0 / 390.5 MB, free: 4.781 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.4536, allocations: 5.656 kB / 390.5 MB, free: 4.777 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001458/0.4551, allocations: 0.7013 MB / 391.2 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009428/0.4561, allocations: 499.4 kB / 391.7 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001148/0.4562, allocations: 20.41 kB / 391.7 MB, free: 4.062 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001869/0.4564, allocations: 20.42 kB / 391.8 MB, free: 4.059 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002258/0.4566, allocations: 45.44 kB / 391.8 MB, free: 4.047 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000217/0.4568, allocations: 118.8 kB / 391.9 MB, free: 4.035 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001334/0.4582, allocations: 0.7334 MB / 392.7 MB, free: 3.672 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4582, allocations: 0 / 392.7 MB, free: 3.672 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007347/0.4589, allocations: 94.97 kB / 392.8 MB, free: 3.66 MB / 318.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.0002634/0.4592, allocations: 139 kB / 392.9 MB, free: 3.559 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001148/0.4604, allocations: 0.655 MB / 393.5 MB, free: 3.113 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.4604, allocations: 1.406 kB / 393.5 MB, free: 3.113 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006828/0.4611, allocations: 0.5296 MB / 394.1 MB, free: 2.703 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009712/0.462, allocations: 204.8 kB / 394.3 MB, free: 2.637 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002379/0.4644, allocations: 1.316 MB / 395.6 MB, free: 1.922 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000815/0.4653, allocations: 0.9667 MB / 396.6 MB, free: 1.137 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006362/0.4659, allocations: 167.4 kB / 396.7 MB, free: 1.035 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000226/0.4661, allocations: 75.56 kB / 396.8 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of SimCode: time 1.583e-06/0.4662, allocations: 0 / 396.8 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of Templates: time 0.01851/0.4847, allocations: 7.895 MB / 404.7 MB, free: 14.26 MB / 334.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)