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.00141/0.00141, 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.001861/0.00186, allocations: 198.3 kB / 16.54 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.821/1.821, allocations: 205.1 MB / 222.4 MB, free: 4.609 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.001286/0.001286, allocations: 51.94 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.2979, allocations: 46.63 MB / 325.3 MB, free: 1.852 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003802/0.3018, allocations: 2.103 MB / 327.4 MB, free: 188 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.00257/0.3044, allocations: 1.057 MB / 328.5 MB, free: 15.37 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001394/0.3046, allocations: 2.656 kB / 328.5 MB, free: 15.37 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001857/0.3048, allocations: 38.88 kB / 328.5 MB, free: 15.33 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001277/0.3049, allocations: 50.42 kB / 328.6 MB, free: 15.29 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004838/0.3054, allocations: 131.2 kB / 328.7 MB, free: 15.18 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005664/0.306, allocations: 404.8 kB / 329.1 MB, free: 14.94 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002945/0.3063, allocations: 108.3 kB / 329.2 MB, free: 14.88 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001345/0.3077, allocations: 0.9357 MB / 330.1 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003278/0.308, allocations: 194.9 kB / 330.3 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001296/0.3081, allocations: 34.66 kB / 330.3 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.615e-05/0.3083, allocations: 34.5 kB / 330.4 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002315/0.3085, allocations: 166.8 kB / 330.5 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003056/0.3088, allocations: 280.9 kB / 330.8 MB, free: 14.09 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001054/0.3099, allocations: 0.9678 MB / 331.8 MB, free: 13.33 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.3099, allocations: 0 / 331.8 MB, free: 13.33 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.025e-06/0.3099, allocations: 0 / 331.8 MB, free: 13.33 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.761e-05/0.3099, allocations: 1.125 kB / 331.8 MB, free: 13.33 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.001894/0.3118, allocations: 1.121 MB / 332.9 MB, free: 12.23 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.283e-05/0.3119, allocations: 11.97 kB / 332.9 MB, free: 12.22 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001609/0.3121, allocations: 83.91 kB / 333 MB, free: 12.14 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006242/0.3127, allocations: 428.1 kB / 333.4 MB, free: 11.68 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.332e-05/0.3127, allocations: 16.38 kB / 333.4 MB, free: 11.66 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.705e-05/0.3128, allocations: 20.38 kB / 333.5 MB, free: 11.64 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007112/0.3135, allocations: 313.3 kB / 333.8 MB, free: 11.33 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.3136, allocations: 0 / 333.8 MB, free: 11.33 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.076e-05/0.3136, allocations: 12 kB / 333.8 MB, free: 11.32 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/0.3136, allocations: 4 kB / 333.8 MB, free: 11.32 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004713/0.3141, allocations: 211.8 kB / 334 MB, free: 11.11 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001618/0.3157, allocations: 0.8979 MB / 334.9 MB, free: 10.16 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000523/0.3163, allocations: 222.5 kB / 335.1 MB, free: 9.934 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002769/0.3166, allocations: 152.8 kB / 335.2 MB, free: 9.781 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.683e-05/0.3166, allocations: 7.922 kB / 335.3 MB, free: 9.773 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006737/0.3173, allocations: 393.9 kB / 335.6 MB, free: 9.352 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.723e-06/0.3173, allocations: 0 / 335.6 MB, free: 9.352 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.001418/0.3187, allocations: 0.7296 MB / 336.4 MB, free: 8.59 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.3189, allocations: 174.2 kB / 336.5 MB, free: 8.383 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001487/0.3203, allocations: 1.004 MB / 337.5 MB, free: 7.367 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.947e-05/0.3204, allocations: 33.7 kB / 337.6 MB, free: 7.328 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001568/0.3206, allocations: 161.7 kB / 337.7 MB, free: 7.168 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.321e-05/0.3207, allocations: 51.41 kB / 337.8 MB, free: 7.117 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002813/0.321, allocations: 169 kB / 337.9 MB, free: 6.945 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.3211, allocations: 342.7 kB / 338.3 MB, free: 6.602 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003009/0.3215, allocations: 123.9 kB / 338.4 MB, free: 6.48 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003286/0.3218, allocations: 164.2 kB / 338.6 MB, free: 6.305 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006051/0.3224, allocations: 485.7 kB / 339 MB, free: 5.766 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.3224, allocations: 0 / 339 MB, free: 5.766 MB / 270.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009438/0.3234, allocations: 0.5742 MB / 339.6 MB, free: 5.16 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001257/0.3235, allocations: 134.8 kB / 339.7 MB, free: 5.004 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.3235, allocations: 4 kB / 339.7 MB, free: 5 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.3236, allocations: 48 / 339.7 MB, free: 5 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.3237, allocations: 19.92 kB / 339.8 MB, free: 4.98 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.3237, allocations: 0 / 339.8 MB, free: 4.98 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002344/0.3239, allocations: 31.98 kB / 339.8 MB, free: 4.949 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001331/0.3241, allocations: 111.9 kB / 339.9 MB, free: 4.84 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.0007248/0.3248, allocations: 0.5298 MB / 340.4 MB, free: 4.273 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001289/0.3249, allocations: 79.06 kB / 340.5 MB, free: 4.195 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002212/0.3252, allocations: 130.3 kB / 340.6 MB, free: 4.055 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.3252, allocations: 4 kB / 340.6 MB, free: 4.051 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/0.3252, allocations: 0 / 340.6 MB, free: 4.051 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.3252, allocations: 0 / 340.6 MB, free: 4.051 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008206/0.326, allocations: 0.6219 MB / 341.3 MB, free: 3.379 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.326, allocations: 0 / 341.3 MB, free: 3.379 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.001e-05/0.3261, allocations: 12 kB / 341.3 MB, free: 3.367 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.3261, allocations: 0 / 341.3 MB, free: 3.367 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.275e-05/0.3262, allocations: 27.98 kB / 341.3 MB, free: 3.34 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.3262, allocations: 0 / 341.3 MB, free: 3.34 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.3262, allocations: 0 / 341.3 MB, free: 3.34 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001161/0.3273, allocations: 0.7062 MB / 342 MB, free: 2.59 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006792/0.328, allocations: 0.4996 MB / 342.5 MB, free: 2.07 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001377/0.3282, allocations: 24.19 kB / 342.5 MB, free: 2.047 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001734/0.3284, allocations: 11.98 kB / 342.6 MB, free: 2.035 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001671/0.3285, allocations: 60 kB / 342.6 MB, free: 1.977 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001948/0.3287, allocations: 119.9 kB / 342.7 MB, free: 1.859 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.001034/0.3298, allocations: 0.7289 MB / 343.5 MB, free: 1.133 MB / 270.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.3298, allocations: 4 kB / 343.5 MB, free: 1.129 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003976/0.3302, allocations: 88 kB / 343.5 MB, free: 1.043 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.000208/0.3304, allocations: 134.7 kB / 343.7 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0009571/0.3314, allocations: 0.669 MB / 344.3 MB, free: 188 kB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3314, allocations: 4 kB / 344.3 MB, free: 184 kB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005769/0.332, allocations: 0.525 MB / 344.9 MB, free: 15.6 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000859/0.3328, allocations: 195 kB / 345.1 MB, free: 15.41 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002629/0.3355, allocations: 1.345 MB / 346.4 MB, free: 14.04 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009559/0.3365, allocations: 0.9636 MB / 347.4 MB, free: 13.05 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0005283/0.337, allocations: 157.2 kB / 347.5 MB, free: 12.89 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002053/0.3372, allocations: 83.28 kB / 347.6 MB, free: 12.82 MB / 286.1 MB Notification: Performance of SimCode: time 1.132e-06/0.3372, allocations: 0 / 347.6 MB, free: 12.82 MB / 286.1 MB Notification: Performance of Templates: time 0.01399/0.3512, allocations: 7.712 MB / 355.3 MB, free: 5.07 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)