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.001271/0.001271, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001391/0.001392, allocations: 194.7 kB / 16.14 MB, free: 6.672 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.974/1.974, allocations: 205.1 MB / 222 MB, free: 4.965 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.001649/0.001649, allocations: 51.92 kB / 278 MB, free: 13 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2985/0.3001, allocations: 46.62 MB / 324.7 MB, free: 1.844 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003813/0.304, allocations: 2.173 MB / 326.8 MB, free: 128 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002302/0.3063, allocations: 1.076 MB / 327.9 MB, free: 15.31 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.424e-05/0.3064, allocations: 6.656 kB / 327.9 MB, free: 15.3 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001793/0.3066, allocations: 26.56 kB / 327.9 MB, free: 15.28 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.849e-05/0.3067, allocations: 41.78 kB / 328 MB, free: 15.25 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004721/0.3072, allocations: 120.6 kB / 328.1 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005378/0.3078, allocations: 329.9 kB / 328.4 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002588/0.308, allocations: 109.5 kB / 328.5 MB, free: 14.9 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001204/0.3092, allocations: 0.919 MB / 329.5 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002459/0.3095, allocations: 172.7 kB / 329.6 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.236e-05/0.3096, allocations: 13 kB / 329.6 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.853e-05/0.3097, allocations: 13.62 kB / 329.6 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001872/0.3099, allocations: 159 kB / 329.8 MB, free: 14.37 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000262/0.3101, allocations: 264.5 kB / 330.1 MB, free: 14.16 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008487/0.311, allocations: 0.9451 MB / 331 MB, free: 13.42 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.311, allocations: 0 / 331 MB, free: 13.42 MB / 270.1 MB Notification: Performance of FrontEnd: time 9.41e-07/0.311, allocations: 0 / 331 MB, free: 13.42 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.311, allocations: 0 / 331 MB, free: 13.42 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.001463/0.3125, allocations: 1.113 MB / 332.1 MB, free: 12.44 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.3125, allocations: 8.625 kB / 332.1 MB, free: 12.44 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001421/0.3127, allocations: 84.78 kB / 332.2 MB, free: 12.39 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004845/0.3132, allocations: 423.6 kB / 332.6 MB, free: 12.02 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.813e-05/0.3132, allocations: 15.03 kB / 332.6 MB, free: 12.02 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.086e-05/0.3133, allocations: 24.97 kB / 332.7 MB, free: 12.01 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006496/0.314, allocations: 321.9 kB / 333 MB, free: 11.76 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.314, allocations: 0 / 333 MB, free: 11.76 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.555e-05/0.314, allocations: 8 kB / 333 MB, free: 11.75 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.194e-05/0.314, allocations: 4 kB / 333 MB, free: 11.75 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004443/0.3145, allocations: 203.9 kB / 333.2 MB, free: 11.55 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001265/0.3158, allocations: 0.8823 MB / 334.1 MB, free: 10.61 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004693/0.3162, allocations: 214.5 kB / 334.3 MB, free: 10.39 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003676/0.3166, allocations: 160.8 kB / 334.4 MB, free: 10.23 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.019e-05/0.3167, allocations: 8 kB / 334.4 MB, free: 10.23 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006984/0.3174, allocations: 385.9 kB / 334.8 MB, free: 9.812 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.453e-06/0.3174, allocations: 3.938 kB / 334.8 MB, free: 9.809 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.001331/0.3187, allocations: 0.7374 MB / 335.6 MB, free: 9.039 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/0.3188, allocations: 174.2 kB / 335.7 MB, free: 8.832 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001387/0.3202, allocations: 1 MB / 336.7 MB, free: 7.82 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.371e-05/0.3203, allocations: 37.7 kB / 336.8 MB, free: 7.777 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.3204, allocations: 161.8 kB / 336.9 MB, free: 7.617 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.728e-05/0.3205, allocations: 55.39 kB / 337 MB, free: 7.562 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002194/0.3207, allocations: 173 kB / 337.2 MB, free: 7.387 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.3209, allocations: 338.8 kB / 337.5 MB, free: 7.047 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002614/0.3211, allocations: 120 kB / 337.6 MB, free: 6.93 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003481/0.3215, allocations: 172.2 kB / 337.8 MB, free: 6.746 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009319/0.3224, allocations: 473.7 kB / 338.2 MB, free: 6.219 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.3224, allocations: 0 / 338.2 MB, free: 6.219 MB / 270.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009362/0.3234, allocations: 0.5858 MB / 338.8 MB, free: 5.602 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001693/0.3236, allocations: 134.8 kB / 338.9 MB, free: 5.445 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.3236, allocations: 0 / 338.9 MB, free: 5.445 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.3236, allocations: 8.062 kB / 339 MB, free: 5.438 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.786e-05/0.3237, allocations: 16 kB / 339 MB, free: 5.422 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.3237, allocations: 0 / 339 MB, free: 5.422 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000286/0.324, allocations: 39.88 kB / 339 MB, free: 5.383 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000183/0.3242, allocations: 123.9 kB / 339.1 MB, free: 5.262 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.0005907/0.3248, allocations: 0.522 MB / 339.7 MB, free: 4.703 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.58e-05/0.3249, allocations: 75.16 kB / 339.7 MB, free: 4.629 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001961/0.3251, allocations: 130.4 kB / 339.9 MB, free: 4.488 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.3251, allocations: 4 kB / 339.9 MB, free: 4.484 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3251, allocations: 0 / 339.9 MB, free: 4.484 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.3251, allocations: 0 / 339.9 MB, free: 4.484 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000739/0.3259, allocations: 0.6296 MB / 340.5 MB, free: 3.805 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3259, allocations: 0 / 340.5 MB, free: 3.805 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.594e-05/0.3259, allocations: 8 kB / 340.5 MB, free: 3.797 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.3259, allocations: 0 / 340.5 MB, free: 3.797 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.944e-05/0.326, allocations: 31.98 kB / 340.5 MB, free: 3.766 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.326, allocations: 3.938 kB / 340.5 MB, free: 3.762 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.326, allocations: 0 / 340.5 MB, free: 3.762 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.3271, allocations: 0.6986 MB / 341.2 MB, free: 3.02 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007074/0.3278, allocations: 0.4957 MB / 341.7 MB, free: 2.504 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001044/0.3279, allocations: 20 kB / 341.7 MB, free: 2.484 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002004/0.3281, allocations: 27.97 kB / 341.8 MB, free: 2.457 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001823/0.3283, allocations: 55.89 kB / 341.8 MB, free: 2.402 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002476/0.3286, allocations: 119.9 kB / 341.9 MB, free: 2.285 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.001044/0.3296, allocations: 0.7291 MB / 342.7 MB, free: 1.559 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3296, allocations: 0 / 342.7 MB, free: 1.559 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003762/0.33, allocations: 91.84 kB / 342.8 MB, free: 1.469 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.0003794/0.3304, allocations: 142.7 kB / 342.9 MB, free: 1.32 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001083/0.3315, allocations: 0.6537 MB / 343.6 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.3315, allocations: 0 / 343.6 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005954/0.3321, allocations: 0.5249 MB / 344.1 MB, free: 44 kB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008589/0.333, allocations: 191.6 kB / 344.3 MB, free: 15.86 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00246/0.3355, allocations: 1.553 MB / 345.8 MB, free: 14.28 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009226/0.3364, allocations: 0.9639 MB / 346.8 MB, free: 13.29 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0003729/0.3368, allocations: 165.1 kB / 346.9 MB, free: 13.12 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001707/0.337, allocations: 75.28 kB / 347 MB, free: 13.05 MB / 286.1 MB Notification: Performance of SimCode: time 5.81e-07/0.337, allocations: 0 / 347 MB, free: 13.05 MB / 286.1 MB Notification: Performance of Templates: time 0.01213/0.3491, allocations: 7.342 MB / 354.4 MB, free: 5.676 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)