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.001172/0.001172, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001346/0.001346, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.917/1.917, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.0005242/0.0005244, allocations: 12 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.3435, allocations: 47.59 MB / 326.5 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.00236/0.3459, allocations: 1.741 MB / 328.2 MB, free: 36 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002852/0.3488, allocations: 1.01 MB / 329.2 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.349, allocations: 6.188 kB / 329.2 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000209/0.3492, allocations: 30.88 kB / 329.3 MB, free: 15.24 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001276/0.3494, allocations: 37.8 kB / 329.3 MB, free: 15.21 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004913/0.3499, allocations: 80.03 kB / 329.4 MB, free: 15.15 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004827/0.3504, allocations: 319.9 kB / 329.7 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002714/0.3506, allocations: 82.73 kB / 329.8 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001258/0.3519, allocations: 0.7778 MB / 330.5 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003021/0.3522, allocations: 183.9 kB / 330.7 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.326e-05/0.3523, allocations: 10 kB / 330.7 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.454e-05/0.3524, allocations: 9.188 kB / 330.7 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002445/0.3526, allocations: 150.9 kB / 330.9 MB, free: 14.45 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001579/0.3528, allocations: 140.2 kB / 331 MB, free: 14.33 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008582/0.3536, allocations: 0.7905 MB / 331.8 MB, free: 13.73 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.3537, allocations: 0 / 331.8 MB, free: 13.73 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.687e-06/0.3537, allocations: 1.094 kB / 331.8 MB, free: 13.73 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.946e-06/0.3537, allocations: 4 kB / 331.8 MB, free: 13.72 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.001309/0.355, allocations: 0.9732 MB / 332.8 MB, free: 12.82 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/0.3551, allocations: 13.56 kB / 332.8 MB, free: 12.82 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001417/0.3552, allocations: 78.72 kB / 332.9 MB, free: 12.78 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00061/0.3558, allocations: 401 kB / 333.3 MB, free: 12.43 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.406e-05/0.3559, allocations: 14.12 kB / 333.3 MB, free: 12.43 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.754e-05/0.356, allocations: 19.62 kB / 333.3 MB, free: 12.43 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008062/0.3568, allocations: 309.3 kB / 333.6 MB, free: 12.22 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.016e-05/0.3569, allocations: 0 / 333.6 MB, free: 12.22 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.845e-05/0.3569, allocations: 19.92 kB / 333.6 MB, free: 12.2 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.497e-06/0.3569, allocations: 4 kB / 333.6 MB, free: 12.2 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004251/0.3574, allocations: 203.9 kB / 333.8 MB, free: 12 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001448/0.3588, allocations: 0.8787 MB / 334.7 MB, free: 11.07 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005246/0.3594, allocations: 214.5 kB / 334.9 MB, free: 10.85 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003353/0.3597, allocations: 164.8 kB / 335.1 MB, free: 10.69 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.047e-05/0.3597, allocations: 4 kB / 335.1 MB, free: 10.68 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007835/0.3605, allocations: 386 kB / 335.5 MB, free: 10.27 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.834e-06/0.3605, allocations: 0 / 335.5 MB, free: 10.27 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.002132/0.3627, allocations: 0.7335 MB / 336.2 MB, free: 9.504 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002054/0.3629, allocations: 182.3 kB / 336.4 MB, free: 9.289 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002334/0.3653, allocations: 0.9961 MB / 337.4 MB, free: 8.281 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 8.241e-05/0.3654, allocations: 41.64 kB / 337.4 MB, free: 8.234 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002145/0.3656, allocations: 149.8 kB / 337.6 MB, free: 8.086 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001273/0.3657, allocations: 59.34 kB / 337.6 MB, free: 8.027 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.063e-05/0.3658, allocations: 8.094 kB / 337.6 MB, free: 8.02 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002956/0.3661, allocations: 342.8 kB / 338 MB, free: 7.676 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004392/0.3665, allocations: 123.9 kB / 338.1 MB, free: 7.555 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000495/0.367, allocations: 164.2 kB / 338.2 MB, free: 7.379 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005296/0.3676, allocations: 226.7 kB / 338.5 MB, free: 7.133 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.3676, allocations: 4 kB / 338.5 MB, free: 7.129 MB / 270.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001578/0.3692, allocations: 0.5742 MB / 339 MB, free: 6.523 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001939/0.3694, allocations: 130.8 kB / 339.2 MB, free: 6.371 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.754e-05/0.3694, allocations: 7.984 kB / 339.2 MB, free: 6.363 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.616e-05/0.3695, allocations: 0 / 339.2 MB, free: 6.363 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001504/0.3696, allocations: 15.94 kB / 339.2 MB, free: 6.348 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.3e-05/0.3697, allocations: 0 / 339.2 MB, free: 6.348 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000527/0.3702, allocations: 47.77 kB / 339.2 MB, free: 6.301 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002337/0.3704, allocations: 119.9 kB / 339.4 MB, free: 6.184 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,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.XOR.G1.auxiliary_n,$whenCondition1,$whenCondition2,$PRE.Adder.XOR.G1.auxiliary_n,$PRE.Adder.XOR.G2.x,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,$whenCondition3,$whenCondition4,$PRE.Adder.AND.G1.auxiliary_n,$PRE.Adder.AND.G2.x,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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001164/0.3716, allocations: 0.5259 MB / 339.9 MB, free: 5.621 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001699/0.3718, allocations: 79.06 kB / 340 MB, free: 5.543 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004056/0.3722, allocations: 126.4 kB / 340.1 MB, free: 5.41 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.949e-06/0.3722, allocations: 4 kB / 340.1 MB, free: 5.406 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.3723, allocations: 4 kB / 340.1 MB, free: 5.402 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.3723, allocations: 0 / 340.1 MB, free: 5.402 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001334/0.3736, allocations: 0.6297 MB / 340.7 MB, free: 4.723 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.3736, allocations: 0 / 340.7 MB, free: 4.723 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.789e-05/0.3737, allocations: 8 kB / 340.7 MB, free: 4.715 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.3737, allocations: 0 / 340.7 MB, free: 4.715 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.929e-05/0.3738, allocations: 27.98 kB / 340.8 MB, free: 4.688 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.3738, allocations: 0 / 340.8 MB, free: 4.688 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3738, allocations: 0 / 340.8 MB, free: 4.688 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00194/0.3758, allocations: 0.7139 MB / 341.5 MB, free: 3.93 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001088/0.3769, allocations: 0.4919 MB / 342 MB, free: 3.418 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001625/0.3771, allocations: 20 kB / 342 MB, free: 3.398 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003281/0.3774, allocations: 35.88 kB / 342 MB, free: 3.363 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002553/0.3777, allocations: 51.97 kB / 342.1 MB, free: 3.312 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002003/0.3779, allocations: 119.9 kB / 342.2 MB, free: 3.195 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.00156/0.3795, allocations: 0.7289 MB / 342.9 MB, free: 2.469 MB / 270.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3795, allocations: 0 / 342.9 MB, free: 2.469 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.000594/0.3801, allocations: 84 kB / 343 MB, free: 2.387 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002927/0.3804, allocations: 146.4 kB / 343.1 MB, free: 2.234 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001459/0.3819, allocations: 0.6539 MB / 343.8 MB, free: 1.531 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.3819, allocations: 4.125 kB / 343.8 MB, free: 1.527 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008837/0.3828, allocations: 0.5327 MB / 344.3 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001145/0.3839, allocations: 171.1 kB / 344.5 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003624/0.3876, allocations: 1.496 MB / 346 MB, free: 15.25 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001053/0.3887, allocations: 0.9717 MB / 347 MB, free: 14.25 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000561/0.3892, allocations: 157.2 kB / 347.1 MB, free: 14.1 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002347/0.3895, allocations: 71.28 kB / 347.2 MB, free: 14.03 MB / 286.1 MB Notification: Performance of SimCode: time 1.482e-06/0.3895, allocations: 4 kB / 347.2 MB, free: 14.03 MB / 286.1 MB Notification: Performance of Templates: time 0.01658/0.4061, allocations: 6.697 MB / 353.9 MB, free: 7.297 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)