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.001555/0.001555, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002376/0.002376, allocations: 196.4 kB / 16.14 MB, free: 6.707 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.963/1.963, allocations: 205.1 MB / 222 MB, free: 4.773 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.001889/0.001889, allocations: 47.92 kB / 278 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3572/0.3592, allocations: 46.63 MB / 324.7 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003936/0.3632, allocations: 2.154 MB / 326.8 MB, free: 232 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002883/0.3661, allocations: 1.088 MB / 327.9 MB, free: 15.4 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001565/0.3663, allocations: 5.812 kB / 327.9 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002175/0.3665, allocations: 27.19 kB / 327.9 MB, free: 15.37 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001134/0.3667, allocations: 38.05 kB / 328 MB, free: 15.34 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004399/0.3671, allocations: 116.7 kB / 328.1 MB, free: 15.24 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004504/0.3676, allocations: 341.1 kB / 328.4 MB, free: 15.04 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002608/0.3678, allocations: 105.7 kB / 328.5 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00112/0.369, allocations: 0.9192 MB / 329.5 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000263/0.3692, allocations: 180.8 kB / 329.6 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.671e-05/0.3693, allocations: 14.03 kB / 329.6 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.16e-05/0.3694, allocations: 13.16 kB / 329.7 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002254/0.3696, allocations: 157.3 kB / 329.8 MB, free: 14.45 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000299/0.37, allocations: 257.5 kB / 330.1 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001016/0.371, allocations: 0.94 MB / 331 MB, free: 13.52 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.738e-06/0.371, allocations: 1.125 kB / 331 MB, free: 13.52 MB / 270.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.371, allocations: 0 / 331 MB, free: 13.52 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.149e-05/0.371, allocations: 4 kB / 331 MB, free: 13.51 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.001844/0.3729, allocations: 1.112 MB / 332.1 MB, free: 12.53 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.113e-05/0.373, allocations: 9.75 kB / 332.1 MB, free: 12.53 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002426/0.3732, allocations: 88.19 kB / 332.2 MB, free: 12.48 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008815/0.3741, allocations: 430.1 kB / 332.6 MB, free: 12.07 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.637e-05/0.3742, allocations: 24.31 kB / 332.7 MB, free: 12.05 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.673e-05/0.3743, allocations: 16.38 kB / 332.7 MB, free: 12.04 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008121/0.3751, allocations: 305.5 kB / 333 MB, free: 11.73 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.3751, allocations: 0 / 333 MB, free: 11.73 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.868e-05/0.3752, allocations: 19.98 kB / 333 MB, free: 11.71 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.3752, allocations: 0 / 333 MB, free: 11.71 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005276/0.3757, allocations: 203.9 kB / 333.2 MB, free: 11.51 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001576/0.3773, allocations: 0.8862 MB / 334.1 MB, free: 10.57 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005329/0.3779, allocations: 218.5 kB / 334.3 MB, free: 10.35 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003223/0.3782, allocations: 156.8 kB / 334.4 MB, free: 10.2 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.676e-05/0.3783, allocations: 7.969 kB / 334.5 MB, free: 10.19 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008223/0.3791, allocations: 385.8 kB / 334.8 MB, free: 9.773 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.3791, allocations: 0 / 334.8 MB, free: 9.773 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.00167/0.3808, allocations: 0.7374 MB / 335.6 MB, free: 9.004 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001417/0.3809, allocations: 174.2 kB / 335.7 MB, free: 8.797 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001499/0.3824, allocations: 0.9961 MB / 336.7 MB, free: 7.789 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.398e-05/0.3825, allocations: 37.7 kB / 336.8 MB, free: 7.746 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001523/0.3827, allocations: 157.8 kB / 336.9 MB, free: 7.59 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.861e-05/0.3828, allocations: 55.34 kB / 337 MB, free: 7.535 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002995/0.3831, allocations: 173 kB / 337.1 MB, free: 7.359 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002316/0.3833, allocations: 338.8 kB / 337.5 MB, free: 7.02 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002757/0.3836, allocations: 127.9 kB / 337.6 MB, free: 6.895 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003199/0.3839, allocations: 160.2 kB / 337.8 MB, free: 6.723 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007925/0.3847, allocations: 485.7 kB / 338.2 MB, free: 6.184 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.3848, allocations: 4 kB / 338.2 MB, free: 6.18 MB / 270.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000981/0.3857, allocations: 0.578 MB / 338.8 MB, free: 5.57 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001128/0.3859, allocations: 130.8 kB / 338.9 MB, free: 5.418 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.3859, allocations: 7.984 kB / 339 MB, free: 5.41 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.3859, allocations: 0 / 339 MB, free: 5.41 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.386, allocations: 16 kB / 339 MB, free: 5.395 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.386, allocations: 0 / 339 MB, free: 5.395 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003075/0.3864, allocations: 43.81 kB / 339 MB, free: 5.352 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001291/0.3865, allocations: 119.9 kB / 339.1 MB, free: 5.234 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.0006559/0.3872, allocations: 0.522 MB / 339.6 MB, free: 4.676 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.3873, allocations: 75.16 kB / 339.7 MB, free: 4.602 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003509/0.3876, allocations: 138.4 kB / 339.9 MB, free: 4.453 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.3876, allocations: 0 / 339.9 MB, free: 4.453 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.3877, allocations: 0 / 339.9 MB, free: 4.453 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.3877, allocations: 0 / 339.9 MB, free: 4.453 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009021/0.3886, allocations: 0.6296 MB / 340.5 MB, free: 3.773 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.644e-06/0.3886, allocations: 0 / 340.5 MB, free: 3.773 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.32e-05/0.3886, allocations: 15.94 kB / 340.5 MB, free: 3.758 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.3887, allocations: 0 / 340.5 MB, free: 3.758 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.171e-05/0.3887, allocations: 23.98 kB / 340.5 MB, free: 3.734 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.3887, allocations: 4.125 kB / 340.5 MB, free: 3.73 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/0.3888, allocations: 4 kB / 340.5 MB, free: 3.727 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001317/0.3901, allocations: 0.7024 MB / 341.2 MB, free: 2.98 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007747/0.3909, allocations: 0.4918 MB / 341.7 MB, free: 2.469 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001113/0.391, allocations: 20 kB / 341.7 MB, free: 2.449 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000222/0.3912, allocations: 35.91 kB / 341.8 MB, free: 2.414 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002514/0.3915, allocations: 43.95 kB / 341.8 MB, free: 2.371 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001502/0.3916, allocations: 119.9 kB / 341.9 MB, free: 2.254 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.001111/0.3928, allocations: 0.7251 MB / 342.7 MB, free: 1.531 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3928, allocations: 4 kB / 342.7 MB, free: 1.527 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004371/0.3932, allocations: 91.91 kB / 342.8 MB, free: 1.438 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.0002829/0.3935, allocations: 138.8 kB / 342.9 MB, free: 1.293 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.00114/0.3947, allocations: 0.6537 MB / 343.5 MB, free: 0.5898 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3947, allocations: 96 / 343.5 MB, free: 0.5898 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007085/0.3954, allocations: 0.5326 MB / 344.1 MB, free: 8 kB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009861/0.3964, allocations: 175.1 kB / 344.3 MB, free: 15.84 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002874/0.3993, allocations: 1.565 MB / 345.8 MB, free: 14.25 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008533/0.4001, allocations: 0.9639 MB / 346.8 MB, free: 13.25 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0004077/0.4006, allocations: 165.1 kB / 346.9 MB, free: 13.09 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001647/0.4007, allocations: 71.28 kB / 347 MB, free: 13.03 MB / 286.1 MB Notification: Performance of SimCode: time 2.765e-06/0.4007, allocations: 0 / 347 MB, free: 13.03 MB / 286.1 MB Notification: Performance of Templates: time 0.01272/0.4135, allocations: 7.357 MB / 354.4 MB, free: 5.633 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)