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.0009551/0.0009552, allocations: 91.84 kB / 15.36 MB, free: 0.7344 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.007423/0.007423, allocations: 169.8 kB / 16.26 MB, free: 6.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.058/2.058, allocations: 205.4 MB / 222.5 MB, free: 5.793 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.0005989/0.000599, allocations: 12.42 kB / 279.4 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3266/0.3272, allocations: 47.59 MB / 327 MB, free: 1.504 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002918/0.3302, allocations: 1.812 MB / 328.8 MB, free: 64 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.003108/0.3334, allocations: 1.063 MB / 329.9 MB, free: 15.26 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001574/0.3336, allocations: 2.031 kB / 329.9 MB, free: 15.26 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002175/0.3338, allocations: 25.91 kB / 329.9 MB, free: 15.23 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001348/0.3339, allocations: 46.69 kB / 330 MB, free: 15.2 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004522/0.3344, allocations: 121.1 kB / 330.1 MB, free: 15.09 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004157/0.3348, allocations: 333.1 kB / 330.4 MB, free: 14.9 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002719/0.3351, allocations: 101.8 kB / 330.5 MB, free: 14.85 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001574/0.3367, allocations: 0.9112 MB / 331.4 MB, free: 14.51 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003478/0.3371, allocations: 158 kB / 331.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.743e-05/0.3371, allocations: 8.656 kB / 331.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.781e-05/0.3372, allocations: 8.688 kB / 331.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002587/0.3375, allocations: 154.1 kB / 331.8 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003622/0.3378, allocations: 277.2 kB / 332 MB, free: 14.11 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001058/0.3389, allocations: 0.9291 MB / 333 MB, free: 13.39 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.3389, allocations: 0 / 333 MB, free: 13.39 MB / 270.1 MB Notification: Performance of FrontEnd: time 8.456e-06/0.339, allocations: 3.984 kB / 333 MB, free: 13.39 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.155e-05/0.339, allocations: 3.938 kB / 333 MB, free: 13.38 MB / 270.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.001603/0.3406, allocations: 0.9565 MB / 333.9 MB, free: 12.5 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.097e-05/0.3407, allocations: 13.34 kB / 333.9 MB, free: 12.49 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001867/0.3409, allocations: 79.78 kB / 334 MB, free: 12.45 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006111/0.3415, allocations: 428.1 kB / 334.4 MB, free: 11.99 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.924e-05/0.3415, allocations: 20.36 kB / 334.4 MB, free: 11.97 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.718e-05/0.3416, allocations: 24.38 kB / 334.5 MB, free: 11.95 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007661/0.3424, allocations: 305.5 kB / 334.8 MB, free: 11.64 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.3424, allocations: 0 / 334.8 MB, free: 11.64 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.859e-05/0.3425, allocations: 8 kB / 334.8 MB, free: 11.64 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.604e-05/0.3425, allocations: 7.938 kB / 334.8 MB, free: 11.63 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004827/0.343, allocations: 211.9 kB / 335 MB, free: 11.42 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001734/0.3448, allocations: 0.8861 MB / 335.9 MB, free: 10.48 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005435/0.3453, allocations: 218.5 kB / 336.1 MB, free: 10.26 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003156/0.3456, allocations: 156.8 kB / 336.2 MB, free: 10.11 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.417e-05/0.3457, allocations: 8 kB / 336.2 MB, free: 10.1 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007234/0.3464, allocations: 385.9 kB / 336.6 MB, free: 9.684 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.933e-06/0.3464, allocations: 0 / 336.6 MB, free: 9.684 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.001597/0.348, allocations: 0.7335 MB / 337.4 MB, free: 8.918 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001588/0.3482, allocations: 174.2 kB / 337.5 MB, free: 8.711 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001617/0.3498, allocations: 1.008 MB / 338.5 MB, free: 7.691 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.309e-05/0.3499, allocations: 33.7 kB / 338.6 MB, free: 7.652 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001485/0.3501, allocations: 153.8 kB / 338.7 MB, free: 7.5 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.927e-05/0.3502, allocations: 55.27 kB / 338.8 MB, free: 7.445 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/0.3503, allocations: 37.7 kB / 338.8 MB, free: 7.402 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001964/0.3505, allocations: 346.7 kB / 339.1 MB, free: 7.055 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000272/0.3507, allocations: 123.9 kB / 339.3 MB, free: 6.934 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003443/0.3511, allocations: 168.2 kB / 339.4 MB, free: 6.754 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008402/0.352, allocations: 485.7 kB / 339.9 MB, free: 6.215 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.352, allocations: 0 / 339.9 MB, free: 6.215 MB / 270.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001079/0.3531, allocations: 0.5741 MB / 340.5 MB, free: 5.609 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000175/0.3532, allocations: 142.8 kB / 340.6 MB, free: 5.445 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.3533, allocations: 0 / 340.6 MB, free: 5.445 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.012e-05/0.3533, allocations: 8.062 kB / 340.6 MB, free: 5.438 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.3534, allocations: 8 kB / 340.6 MB, free: 5.43 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.432e-05/0.3534, allocations: 7.938 kB / 340.6 MB, free: 5.422 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004048/0.3539, allocations: 39.81 kB / 340.7 MB, free: 5.383 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001593/0.354, allocations: 115.9 kB / 340.8 MB, free: 5.27 MB / 270.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.0008901/0.3549, allocations: 0.5298 MB / 341.3 MB, free: 4.703 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.355, allocations: 75.16 kB / 341.4 MB, free: 4.629 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002275/0.3553, allocations: 134.4 kB / 341.5 MB, free: 4.484 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.3553, allocations: 0 / 341.5 MB, free: 4.484 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/0.3553, allocations: 4.062 kB / 341.5 MB, free: 4.48 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.3553, allocations: 4 kB / 341.5 MB, free: 4.477 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008575/0.3562, allocations: 0.6257 MB / 342.2 MB, free: 3.801 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.3562, allocations: 0 / 342.2 MB, free: 3.801 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.542e-05/0.3562, allocations: 12 kB / 342.2 MB, free: 3.789 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.3563, allocations: 0 / 342.2 MB, free: 3.789 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.34e-05/0.3563, allocations: 32.08 kB / 342.2 MB, free: 3.758 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.3563, allocations: 3.938 kB / 342.2 MB, free: 3.754 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.3563, allocations: 0 / 342.2 MB, free: 3.754 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001192/0.3575, allocations: 0.7023 MB / 342.9 MB, free: 3.008 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008021/0.3584, allocations: 0.4957 MB / 343.4 MB, free: 2.492 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000113/0.3585, allocations: 24 kB / 343.4 MB, free: 2.469 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002297/0.3587, allocations: 27.97 kB / 343.5 MB, free: 2.441 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002157/0.3589, allocations: 55.95 kB / 343.5 MB, free: 2.387 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001602/0.3591, allocations: 111.9 kB / 343.6 MB, free: 2.277 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.001148/0.3603, allocations: 0.729 MB / 344.4 MB, free: 1.551 MB / 270.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.3603, allocations: 0 / 344.4 MB, free: 1.551 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004549/0.3607, allocations: 91.91 kB / 344.4 MB, free: 1.461 MB / 270.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.0002612/0.361, allocations: 138.8 kB / 344.6 MB, free: 1.316 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001114/0.3621, allocations: 0.6613 MB / 345.2 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.3621, allocations: 0 / 345.2 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006886/0.3628, allocations: 0.521 MB / 345.8 MB, free: 36 kB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001019/0.3639, allocations: 179.3 kB / 345.9 MB, free: 15.86 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002923/0.3668, allocations: 1.55 MB / 347.5 MB, free: 14.28 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007591/0.3676, allocations: 0.9678 MB / 348.5 MB, free: 13.28 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0004593/0.3681, allocations: 165.1 kB / 348.6 MB, free: 13.12 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001755/0.3682, allocations: 75.28 kB / 348.7 MB, free: 13.05 MB / 286.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3682, allocations: 0 / 348.7 MB, free: 13.05 MB / 286.1 MB Notification: Performance of Templates: time 0.01532/0.3836, allocations: 6.846 MB / 355.5 MB, free: 6.168 MB / 286.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)