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.0009741/0.0009742, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001244/0.001243, allocations: 168.7 kB / 15.95 MB, free: 204 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.829/1.829, allocations: 205.4 MB / 222.1 MB, free: 5.641 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.0004783/0.0004784, allocations: 18.81 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2837, allocations: 47.59 MB / 326.5 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.001844/0.2856, allocations: 1.737 MB / 328.2 MB, free: 44 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001932/0.2875, allocations: 1.006 MB / 329.2 MB, free: 15.29 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.148e-05/0.2876, allocations: 5.094 kB / 329.2 MB, free: 15.28 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001318/0.2877, allocations: 35.09 kB / 329.3 MB, free: 15.25 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.554e-05/0.2879, allocations: 38.38 kB / 329.3 MB, free: 15.22 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003128/0.2882, allocations: 85.16 kB / 329.4 MB, free: 15.15 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004059/0.2886, allocations: 315 kB / 329.7 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001923/0.2888, allocations: 81.92 kB / 329.8 MB, free: 14.92 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009688/0.2898, allocations: 0.7822 MB / 330.6 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002135/0.29, allocations: 180.9 kB / 330.7 MB, free: 14.53 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.353e-05/0.2901, allocations: 9.062 kB / 330.7 MB, free: 14.53 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.731e-05/0.2901, allocations: 9.062 kB / 330.7 MB, free: 14.53 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000157/0.2903, allocations: 142.9 kB / 330.9 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001233/0.2904, allocations: 140.1 kB / 331 MB, free: 14.35 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006525/0.2911, allocations: 0.7946 MB / 331.8 MB, free: 13.74 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2911, allocations: 0 / 331.8 MB, free: 13.74 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.2911, allocations: 1.406 kB / 331.8 MB, free: 13.74 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.2911, allocations: 4 kB / 331.8 MB, free: 13.73 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.001135/0.2922, allocations: 0.9728 MB / 332.8 MB, free: 12.84 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.2923, allocations: 10.5 kB / 332.8 MB, free: 12.84 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001416/0.2924, allocations: 82.25 kB / 332.9 MB, free: 12.79 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005046/0.2929, allocations: 400.8 kB / 333.3 MB, free: 12.45 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.51e-05/0.293, allocations: 18 kB / 333.3 MB, free: 12.44 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.661e-05/0.2931, allocations: 20 kB / 333.3 MB, free: 12.43 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006217/0.2937, allocations: 300.5 kB / 333.6 MB, free: 12.24 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.2937, allocations: 0 / 333.6 MB, free: 12.24 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.516e-05/0.2938, allocations: 19.92 kB / 333.6 MB, free: 12.22 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.655e-06/0.2938, allocations: 4 kB / 333.6 MB, free: 12.22 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004285/0.2942, allocations: 203.9 kB / 333.8 MB, free: 12.02 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00126/0.2955, allocations: 0.8865 MB / 334.7 MB, free: 11.08 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004409/0.2959, allocations: 222.4 kB / 334.9 MB, free: 10.86 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002705/0.2962, allocations: 156.8 kB / 335.1 MB, free: 10.7 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.549e-05/0.2963, allocations: 0 / 335.1 MB, free: 10.7 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005476/0.2968, allocations: 390 kB / 335.5 MB, free: 10.28 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.383e-06/0.2968, allocations: 0 / 335.5 MB, free: 10.28 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.001288/0.2981, allocations: 0.7335 MB / 336.2 MB, free: 9.516 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.2982, allocations: 178.3 kB / 336.4 MB, free: 9.305 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001298/0.2995, allocations: 1.004 MB / 337.4 MB, free: 8.289 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.121e-05/0.2996, allocations: 37.64 kB / 337.4 MB, free: 8.246 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00012/0.2997, allocations: 153.8 kB / 337.6 MB, free: 8.094 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.09e-05/0.2998, allocations: 55.36 kB / 337.6 MB, free: 8.039 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.847e-05/0.2998, allocations: 4.094 kB / 337.6 MB, free: 8.035 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.3, allocations: 342.8 kB / 338 MB, free: 7.691 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002648/0.3002, allocations: 123.9 kB / 338.1 MB, free: 7.57 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002874/0.3005, allocations: 160.2 kB / 338.2 MB, free: 7.398 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003097/0.3009, allocations: 230.7 kB / 338.5 MB, free: 7.148 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3009, allocations: 0 / 338.5 MB, free: 7.148 MB / 270.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008951/0.3018, allocations: 0.5742 MB / 339 MB, free: 6.543 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.809e-05/0.3019, allocations: 130.8 kB / 339.2 MB, free: 6.391 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.3019, allocations: 4 kB / 339.2 MB, free: 6.387 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.3019, allocations: 0 / 339.2 MB, free: 6.387 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.589e-05/0.302, allocations: 23.92 kB / 339.2 MB, free: 6.363 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.302, allocations: 4 kB / 339.2 MB, free: 6.359 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002637/0.3023, allocations: 39.77 kB / 339.2 MB, free: 6.32 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001318/0.3024, allocations: 119.9 kB / 339.4 MB, free: 6.203 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.0005781/0.303, allocations: 0.5259 MB / 339.9 MB, free: 5.641 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.163e-05/0.3031, allocations: 79.06 kB / 340 MB, free: 5.562 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000197/0.3033, allocations: 126.4 kB / 340.1 MB, free: 5.43 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.3033, allocations: 4 kB / 340.1 MB, free: 5.426 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3033, allocations: 4 kB / 340.1 MB, free: 5.422 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.3033, allocations: 4.031 kB / 340.1 MB, free: 5.418 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007094/0.3041, allocations: 0.6219 MB / 340.7 MB, free: 4.746 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.3041, allocations: 0 / 340.7 MB, free: 4.746 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.158e-05/0.3041, allocations: 11.98 kB / 340.7 MB, free: 4.734 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.3041, allocations: 0 / 340.7 MB, free: 4.734 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.191e-05/0.3042, allocations: 31.97 kB / 340.8 MB, free: 4.703 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3042, allocations: 3.938 kB / 340.8 MB, free: 4.699 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3042, allocations: 0 / 340.8 MB, free: 4.699 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001036/0.3052, allocations: 0.7139 MB / 341.5 MB, free: 3.941 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006137/0.3059, allocations: 0.4958 MB / 342 MB, free: 3.426 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.659e-05/0.306, allocations: 20 kB / 342 MB, free: 3.406 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001953/0.3062, allocations: 40 kB / 342 MB, free: 3.367 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001454/0.3063, allocations: 47.94 kB / 342.1 MB, free: 3.32 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/0.3065, allocations: 119.9 kB / 342.2 MB, free: 3.203 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0009371/0.3074, allocations: 0.7289 MB / 342.9 MB, free: 2.477 MB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3074, allocations: 0 / 342.9 MB, free: 2.477 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003292/0.3077, allocations: 88 kB / 343 MB, free: 2.391 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.000187/0.3079, allocations: 146.4 kB / 343.1 MB, free: 2.238 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0008973/0.3088, allocations: 0.6537 MB / 343.8 MB, free: 1.535 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.3089, allocations: 0 / 343.8 MB, free: 1.535 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005459/0.3094, allocations: 0.5366 MB / 344.3 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006962/0.3101, allocations: 163.1 kB / 344.5 MB, free: 0.793 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002079/0.3122, allocations: 1.5 MB / 346 MB, free: 15.25 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006348/0.3128, allocations: 0.9639 MB / 347 MB, free: 14.27 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002993/0.3132, allocations: 165.2 kB / 347.1 MB, free: 14.11 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001466/0.3133, allocations: 75.28 kB / 347.2 MB, free: 14.04 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3133, allocations: 0 / 347.2 MB, free: 14.04 MB / 286.1 MB Notification: Performance of Templates: time 0.01003/0.3234, allocations: 6.682 MB / 353.9 MB, free: 7.32 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)