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.001512/0.001512, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001876/0.001876, allocations: 195.5 kB / 16.53 MB, free: 6.391 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.773/1.773, allocations: 205.1 MB / 222.4 MB, free: 4.625 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.001258/0.001258, allocations: 55.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2706/0.2718, allocations: 46.63 MB / 325.3 MB, free: 2.074 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003457/0.2754, allocations: 2.113 MB / 327.4 MB, free: 404 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002481/0.2779, allocations: 1.05 MB / 328.5 MB, free: 15.59 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.278, allocations: 5.25 kB / 328.5 MB, free: 15.58 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001883/0.2782, allocations: 38.58 kB / 328.5 MB, free: 15.55 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001266/0.2783, allocations: 51.16 kB / 328.6 MB, free: 15.5 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004368/0.2788, allocations: 127.1 kB / 328.7 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000522/0.2793, allocations: 408.9 kB / 329.1 MB, free: 15.15 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002542/0.2796, allocations: 100.7 kB / 329.2 MB, free: 15.11 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001169/0.2807, allocations: 0.9386 MB / 330.1 MB, free: 14.74 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000258/0.281, allocations: 199.9 kB / 330.3 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.101e-05/0.2811, allocations: 34.16 kB / 330.4 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.188e-05/0.2812, allocations: 35.62 kB / 330.4 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002114/0.2814, allocations: 157.1 kB / 330.5 MB, free: 14.53 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002963/0.2817, allocations: 294 kB / 330.8 MB, free: 14.3 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008772/0.2826, allocations: 0.963 MB / 331.8 MB, free: 13.55 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.2826, allocations: 1.219 kB / 331.8 MB, free: 13.55 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2826, allocations: 0 / 331.8 MB, free: 13.55 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.2826, allocations: 0 / 331.8 MB, free: 13.55 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.001368/0.284, allocations: 1.122 MB / 332.9 MB, free: 12.39 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.2841, allocations: 8.031 kB / 332.9 MB, free: 12.38 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001302/0.2842, allocations: 87.84 kB / 333 MB, free: 12.29 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004539/0.2847, allocations: 424.1 kB / 333.4 MB, free: 11.84 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.859e-05/0.2847, allocations: 16.38 kB / 333.4 MB, free: 11.82 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.444e-05/0.2848, allocations: 20.38 kB / 333.5 MB, free: 11.8 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006543/0.2854, allocations: 313.3 kB / 333.8 MB, free: 11.49 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/0.2855, allocations: 0 / 333.8 MB, free: 11.49 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.254e-05/0.2855, allocations: 8 kB / 333.8 MB, free: 11.48 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.2855, allocations: 8 kB / 333.8 MB, free: 11.48 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004512/0.286, allocations: 215.8 kB / 334 MB, free: 11.27 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001409/0.2874, allocations: 0.8902 MB / 334.9 MB, free: 10.32 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004674/0.2879, allocations: 218.5 kB / 335.1 MB, free: 10.1 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002912/0.2882, allocations: 156.8 kB / 335.2 MB, free: 9.945 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.405e-05/0.2882, allocations: 4 kB / 335.2 MB, free: 9.941 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006763/0.2889, allocations: 393.8 kB / 335.6 MB, free: 9.52 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.543e-06/0.2889, allocations: 0 / 335.6 MB, free: 9.52 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.001326/0.2902, allocations: 0.7375 MB / 336.4 MB, free: 8.75 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.506e-05/0.2903, allocations: 174.2 kB / 336.5 MB, free: 8.543 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001149/0.2915, allocations: 1.004 MB / 337.5 MB, free: 7.527 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.246e-05/0.2915, allocations: 33.7 kB / 337.6 MB, free: 7.488 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.2916, allocations: 161.8 kB / 337.7 MB, free: 7.328 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.726e-05/0.2917, allocations: 55.3 kB / 337.8 MB, free: 7.273 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002033/0.2919, allocations: 165 kB / 338 MB, free: 7.105 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.2921, allocations: 342.8 kB / 338.3 MB, free: 6.762 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00025/0.2923, allocations: 120 kB / 338.4 MB, free: 6.645 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002696/0.2926, allocations: 168.2 kB / 338.6 MB, free: 6.465 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000586/0.2932, allocations: 477.8 kB / 339 MB, free: 5.934 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2932, allocations: 0 / 339 MB, free: 5.934 MB / 270.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009511/0.2942, allocations: 0.5819 MB / 339.6 MB, free: 5.32 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.46e-05/0.2943, allocations: 130.8 kB / 339.7 MB, free: 5.168 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.2943, allocations: 0 / 339.7 MB, free: 5.168 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.2943, allocations: 4 kB / 339.7 MB, free: 5.164 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.162e-05/0.2944, allocations: 23.92 kB / 339.8 MB, free: 5.141 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.2944, allocations: 0 / 339.8 MB, free: 5.141 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001971/0.2946, allocations: 19.92 kB / 339.8 MB, free: 5.121 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000112/0.2947, allocations: 119.9 kB / 339.9 MB, free: 5.004 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.0005438/0.2953, allocations: 0.5298 MB / 340.4 MB, free: 4.438 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.942e-05/0.2954, allocations: 79.06 kB / 340.5 MB, free: 4.359 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002721/0.2957, allocations: 130.4 kB / 340.6 MB, free: 4.219 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-06/0.2957, allocations: 0 / 340.6 MB, free: 4.219 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.2957, allocations: 4 kB / 340.6 MB, free: 4.215 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.2957, allocations: 0 / 340.6 MB, free: 4.215 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007913/0.2965, allocations: 0.6258 MB / 341.3 MB, free: 3.539 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.2965, allocations: 0 / 341.3 MB, free: 3.539 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.568e-05/0.2965, allocations: 19.92 kB / 341.3 MB, free: 3.52 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.2966, allocations: 0 / 341.3 MB, free: 3.52 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.573e-05/0.2966, allocations: 24.11 kB / 341.3 MB, free: 3.496 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.2966, allocations: 8 kB / 341.3 MB, free: 3.488 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.2966, allocations: 0 / 341.3 MB, free: 3.488 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001046/0.2977, allocations: 0.7063 MB / 342 MB, free: 2.738 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005639/0.2982, allocations: 0.4918 MB / 342.5 MB, free: 2.227 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.723e-05/0.2983, allocations: 20 kB / 342.5 MB, free: 2.207 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001645/0.2985, allocations: 19.98 kB / 342.6 MB, free: 2.188 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002405/0.2988, allocations: 52.08 kB / 342.6 MB, free: 2.137 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001106/0.2989, allocations: 119.9 kB / 342.7 MB, free: 2.02 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0009242/0.2998, allocations: 0.7289 MB / 343.5 MB, free: 1.293 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2998, allocations: 0 / 343.5 MB, free: 1.293 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003422/0.3002, allocations: 92 kB / 343.5 MB, free: 1.203 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.0001698/0.3004, allocations: 130.7 kB / 343.7 MB, free: 1.066 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0009186/0.3013, allocations: 0.6613 MB / 344.3 MB, free: 364 kB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.3013, allocations: 4.125 kB / 344.3 MB, free: 360 kB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006662/0.302, allocations: 0.5327 MB / 344.9 MB, free: 15.77 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008423/0.3028, allocations: 195.7 kB / 345.1 MB, free: 15.58 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002069/0.3049, allocations: 1.334 MB / 346.4 MB, free: 14.22 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006591/0.3056, allocations: 0.9714 MB / 347.4 MB, free: 13.22 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0003384/0.3059, allocations: 161.1 kB / 347.5 MB, free: 13.06 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001612/0.3061, allocations: 67.3 kB / 347.6 MB, free: 13 MB / 286.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3061, allocations: 7.938 kB / 347.6 MB, free: 12.99 MB / 286.1 MB Notification: Performance of Templates: time 0.01231/0.3184, allocations: 7.716 MB / 355.3 MB, free: 5.238 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)