Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001265/0.001265, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.001475/0.001475, allocations: 193.5 kB / 16.25 MB, free: 6.629 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.183/2.183, allocations: 205.1 MB / 222.1 MB, free: 4.711 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.001656/0.001656, allocations: 48.39 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3959/0.3976, allocations: 46.63 MB / 324.8 MB, free: 1.898 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003797/0.4014, allocations: 2.161 MB / 327 MB, free: 196 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002477/0.4039, allocations: 1.041 MB / 328 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001212/0.4041, allocations: 5.25 kB / 328 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002391/0.4044, allocations: 26.81 kB / 328.1 MB, free: 15.36 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001163/0.4045, allocations: 42.75 kB / 328.1 MB, free: 15.33 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000425/0.4049, allocations: 121.2 kB / 328.2 MB, free: 15.23 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005456/0.4055, allocations: 404.6 kB / 328.6 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002833/0.4058, allocations: 108.5 kB / 328.7 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001134/0.4069, allocations: 0.9355 MB / 329.7 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002691/0.4072, allocations: 205.3 kB / 329.9 MB, free: 14.45 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.512e-05/0.4073, allocations: 33.34 kB / 329.9 MB, free: 14.45 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.614e-05/0.4074, allocations: 36.19 kB / 329.9 MB, free: 14.45 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001774/0.4075, allocations: 157.5 kB / 330.1 MB, free: 14.36 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002818/0.4078, allocations: 293.7 kB / 330.4 MB, free: 14.12 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009381/0.4088, allocations: 0.9596 MB / 331.3 MB, free: 13.38 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.4088, allocations: 0 / 331.3 MB, free: 13.38 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4088, allocations: 1.031 kB / 331.3 MB, free: 13.38 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.388e-06/0.4088, allocations: 3.938 kB / 331.3 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.001394/0.4102, allocations: 1.113 MB / 332.5 MB, free: 12.39 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.4103, allocations: 12.56 kB / 332.5 MB, free: 12.39 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001478/0.4104, allocations: 85.44 kB / 332.6 MB, free: 12.32 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000538/0.411, allocations: 432.1 kB / 333 MB, free: 11.86 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.649e-05/0.411, allocations: 16.38 kB / 333 MB, free: 11.84 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.557e-05/0.4111, allocations: 20.38 kB / 333 MB, free: 11.82 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006017/0.4117, allocations: 305.5 kB / 333.3 MB, free: 11.52 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.4117, allocations: 0 / 333.3 MB, free: 11.52 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.399e-05/0.4118, allocations: 12 kB / 333.3 MB, free: 11.51 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.4118, allocations: 4 kB / 333.3 MB, free: 11.5 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004164/0.4122, allocations: 207.9 kB / 333.5 MB, free: 11.3 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001234/0.4135, allocations: 0.8901 MB / 334.4 MB, free: 10.36 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004365/0.4139, allocations: 218.5 kB / 334.6 MB, free: 10.14 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002787/0.4142, allocations: 152.8 kB / 334.8 MB, free: 9.984 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.903e-05/0.4142, allocations: 0 / 334.8 MB, free: 9.984 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006343/0.4149, allocations: 393.9 kB / 335.2 MB, free: 9.562 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.563e-06/0.4149, allocations: 0 / 335.2 MB, free: 9.562 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.001352/0.4162, allocations: 0.7297 MB / 335.9 MB, free: 8.801 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001293/0.4164, allocations: 182.1 kB / 336.1 MB, free: 8.586 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001301/0.4177, allocations: 1 MB / 337.1 MB, free: 7.574 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.959e-05/0.4178, allocations: 37.7 kB / 337.1 MB, free: 7.531 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.4179, allocations: 153.8 kB / 337.3 MB, free: 7.379 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.806e-05/0.418, allocations: 51.41 kB / 337.3 MB, free: 7.328 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000248/0.4182, allocations: 169 kB / 337.5 MB, free: 7.156 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.4184, allocations: 346.7 kB / 337.8 MB, free: 6.809 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002561/0.4187, allocations: 123.9 kB / 337.9 MB, free: 6.688 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002853/0.419, allocations: 172.2 kB / 338.1 MB, free: 6.504 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005584/0.4195, allocations: 473.7 kB / 338.6 MB, free: 5.977 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.4195, allocations: 4 kB / 338.6 MB, free: 5.973 MB / 270.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009415/0.4205, allocations: 0.5821 MB / 339.2 MB, free: 5.359 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001077/0.4206, allocations: 138.8 kB / 339.3 MB, free: 5.199 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.4206, allocations: 3.938 kB / 339.3 MB, free: 5.195 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.4206, allocations: 0 / 339.3 MB, free: 5.195 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.307e-05/0.4207, allocations: 15.98 kB / 339.3 MB, free: 5.18 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.4208, allocations: 4 kB / 339.3 MB, free: 5.176 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002861/0.421, allocations: 39.81 kB / 339.3 MB, free: 5.137 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001247/0.4212, allocations: 111.9 kB / 339.5 MB, free: 5.027 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.0005781/0.4218, allocations: 0.5338 MB / 340 MB, free: 4.457 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.924e-05/0.4219, allocations: 79.09 kB / 340.1 MB, free: 4.379 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002085/0.4221, allocations: 126.4 kB / 340.2 MB, free: 4.242 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.4221, allocations: 0 / 340.2 MB, free: 4.242 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.086e-06/0.4221, allocations: 0 / 340.2 MB, free: 4.242 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.884e-06/0.4221, allocations: 11.98 kB / 340.2 MB, free: 4.23 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007579/0.4229, allocations: 0.6179 MB / 340.8 MB, free: 3.562 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.4229, allocations: 4 kB / 340.8 MB, free: 3.559 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.473e-05/0.423, allocations: 15.98 kB / 340.8 MB, free: 3.543 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.423, allocations: 0 / 340.8 MB, free: 3.543 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.972e-05/0.423, allocations: 23.98 kB / 340.9 MB, free: 3.52 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.423, allocations: 0 / 340.9 MB, free: 3.52 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.423, allocations: 0 / 340.9 MB, free: 3.52 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001066/0.4241, allocations: 0.7024 MB / 341.6 MB, free: 2.773 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006386/0.4248, allocations: 0.4996 MB / 342.1 MB, free: 2.254 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001069/0.4249, allocations: 24 kB / 342.1 MB, free: 2.23 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001995/0.4251, allocations: 23.97 kB / 342.1 MB, free: 2.207 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001619/0.4253, allocations: 51.95 kB / 342.2 MB, free: 2.156 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001191/0.4254, allocations: 111.9 kB / 342.3 MB, free: 2.047 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.000963/0.4263, allocations: 0.729 MB / 343 MB, free: 1.32 MB / 270.1 MB Notification: Performance of sort global known variables: time 3.787e-06/0.4264, allocations: 0 / 343 MB, free: 1.32 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003772/0.4267, allocations: 91.84 kB / 343.1 MB, free: 1.23 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.0002141/0.427, allocations: 142.8 kB / 343.2 MB, free: 1.082 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0009503/0.4279, allocations: 0.6691 MB / 343.9 MB, free: 372 kB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4279, allocations: 0 / 343.9 MB, free: 372 kB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000553/0.4285, allocations: 0.5328 MB / 344.4 MB, free: 15.78 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008185/0.4293, allocations: 199.2 kB / 344.6 MB, free: 15.59 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002373/0.4317, allocations: 1.552 MB / 346.2 MB, free: 14.01 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000675/0.4324, allocations: 0.9675 MB / 347.1 MB, free: 13.01 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0003816/0.4328, allocations: 157.4 kB / 347.3 MB, free: 12.86 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001686/0.433, allocations: 75.28 kB / 347.4 MB, free: 12.79 MB / 286.1 MB Notification: Performance of SimCode: time 8.52e-07/0.433, allocations: 4 kB / 347.4 MB, free: 12.79 MB / 286.1 MB Notification: Performance of Templates: time 0.01362/0.4466, allocations: 7.637 MB / 355 MB, free: 5.109 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1)