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.00165/0.00165, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.002146/0.002146, allocations: 177.3 kB / 15.94 MB, free: 228 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.971/1.971, allocations: 205.4 MB / 222.1 MB, free: 5.52 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.0005251/0.0005254, allocations: 8 kB / 278.9 MB, free: 12.73 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3485/0.349, allocations: 47.59 MB / 326.4 MB, free: 1.434 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002727/0.3518, allocations: 1.733 MB / 328.2 MB, free: 76 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002945/0.3548, allocations: 1.012 MB / 329.2 MB, free: 15.32 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001698/0.355, allocations: 1.531 kB / 329.2 MB, free: 15.32 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002387/0.3553, allocations: 29.19 kB / 329.2 MB, free: 15.29 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002571/0.3555, allocations: 50.56 kB / 329.3 MB, free: 15.25 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00057/0.3561, allocations: 79.69 kB / 329.3 MB, free: 15.19 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000468/0.3566, allocations: 217.6 kB / 329.6 MB, free: 15.04 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003367/0.357, allocations: 78.19 kB / 329.6 MB, free: 15 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001389/0.3584, allocations: 0.6571 MB / 330.3 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003835/0.3588, allocations: 184 kB / 330.5 MB, free: 14.65 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.802e-05/0.3588, allocations: 9.594 kB / 330.5 MB, free: 14.65 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.851e-05/0.3589, allocations: 10.12 kB / 330.5 MB, free: 14.65 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002721/0.3592, allocations: 150.1 kB / 330.6 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002077/0.3594, allocations: 137.2 kB / 330.8 MB, free: 14.47 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00108/0.3605, allocations: 0.7953 MB / 331.6 MB, free: 13.86 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.3605, allocations: 0 / 331.6 MB, free: 13.86 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.3605, allocations: 4 kB / 331.6 MB, free: 13.85 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.378e-05/0.3605, allocations: 0 / 331.6 MB, free: 13.85 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.001653/0.3622, allocations: 0.965 MB / 332.5 MB, free: 12.96 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.376e-05/0.3623, allocations: 10.19 kB / 332.5 MB, free: 12.96 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001979/0.3625, allocations: 77.91 kB / 332.6 MB, free: 12.92 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007259/0.3632, allocations: 405.7 kB / 333 MB, free: 12.57 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.864e-05/0.3633, allocations: 17.8 kB / 333 MB, free: 12.56 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.643e-05/0.3634, allocations: 19.19 kB / 333.1 MB, free: 12.56 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000788/0.3642, allocations: 302 kB / 333.3 MB, free: 12.38 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.3642, allocations: 5.406 kB / 333.4 MB, free: 12.38 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.647e-05/0.3643, allocations: 9.812 kB / 333.4 MB, free: 12.37 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.341e-05/0.3643, allocations: 2.938 kB / 333.4 MB, free: 12.37 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005496/0.3648, allocations: 215.8 kB / 333.6 MB, free: 12.23 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001871/0.3667, allocations: 0.8787 MB / 334.5 MB, free: 11.3 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000578/0.3673, allocations: 214.5 kB / 334.7 MB, free: 11.09 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.598e-05/0.3673, allocations: 4 kB / 334.7 MB, free: 11.08 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006866/0.368, allocations: 386 kB / 335 MB, free: 10.67 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 4.128e-06/0.3681, allocations: 0 / 335 MB, free: 10.67 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.001913/0.37, allocations: 0.8997 MB / 335.9 MB, free: 9.699 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001424/0.3701, allocations: 178.2 kB / 336.1 MB, free: 9.488 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001664/0.3718, allocations: 1.004 MB / 337.1 MB, free: 8.473 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.998e-05/0.3719, allocations: 37.7 kB / 337.2 MB, free: 8.43 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001546/0.372, allocations: 149.8 kB / 337.3 MB, free: 8.281 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.051e-05/0.3721, allocations: 59.28 kB / 337.4 MB, free: 8.223 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.216e-05/0.3722, allocations: 12 kB / 337.4 MB, free: 8.211 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000191/0.3724, allocations: 338.8 kB / 337.7 MB, free: 7.871 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002528/0.3726, allocations: 116 kB / 337.8 MB, free: 7.758 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000287/0.3729, allocations: 164.3 kB / 338 MB, free: 7.582 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000327/0.3733, allocations: 238.5 kB / 338.2 MB, free: 7.324 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.3733, allocations: 4 kB / 338.2 MB, free: 7.32 MB / 270.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001039/0.3743, allocations: 0.5742 MB / 338.8 MB, free: 6.715 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001303/0.3745, allocations: 130.8 kB / 338.9 MB, free: 6.562 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.3745, allocations: 0 / 338.9 MB, free: 6.562 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.856e-05/0.3745, allocations: 7.938 kB / 338.9 MB, free: 6.555 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001321/0.3747, allocations: 19.92 kB / 338.9 MB, free: 6.535 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.3747, allocations: 0 / 338.9 MB, free: 6.535 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004154/0.3751, allocations: 39.83 kB / 339 MB, free: 6.496 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001593/0.3753, allocations: 115.9 kB / 339.1 MB, free: 6.383 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.0008878/0.3762, allocations: 0.5337 MB / 339.6 MB, free: 5.812 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001413/0.3763, allocations: 79.06 kB / 339.7 MB, free: 5.734 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002379/0.3766, allocations: 126.4 kB / 339.8 MB, free: 5.602 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.3766, allocations: 0 / 339.8 MB, free: 5.602 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.307e-06/0.3766, allocations: 0 / 339.8 MB, free: 5.602 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/0.3766, allocations: 8 kB / 339.8 MB, free: 5.594 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009089/0.3775, allocations: 0.6221 MB / 340.5 MB, free: 4.922 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.3776, allocations: 8 kB / 340.5 MB, free: 4.914 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.808e-05/0.3776, allocations: 8 kB / 340.5 MB, free: 4.906 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.835e-06/0.3776, allocations: 3.984 kB / 340.5 MB, free: 4.902 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.835e-05/0.3777, allocations: 27.98 kB / 340.5 MB, free: 4.875 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.3777, allocations: 0 / 340.5 MB, free: 4.875 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.3777, allocations: 0 / 340.5 MB, free: 4.875 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001306/0.379, allocations: 0.7062 MB / 341.2 MB, free: 4.125 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008422/0.3799, allocations: 0.5035 MB / 341.7 MB, free: 3.602 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000113/0.38, allocations: 20 kB / 341.7 MB, free: 3.582 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002331/0.3803, allocations: 23.89 kB / 341.8 MB, free: 3.559 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002243/0.3805, allocations: 59.92 kB / 341.8 MB, free: 3.5 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001547/0.3807, allocations: 119.9 kB / 341.9 MB, free: 3.383 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.001142/0.3818, allocations: 0.7211 MB / 342.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3818, allocations: 0 / 342.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004858/0.3823, allocations: 92 kB / 342.7 MB, free: 2.574 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.0002628/0.3826, allocations: 138.5 kB / 342.9 MB, free: 2.43 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.3836, allocations: 0.6537 MB / 343.5 MB, free: 1.727 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.3836, allocations: 4.125 kB / 343.5 MB, free: 1.723 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000583/0.3842, allocations: 0.5249 MB / 344.1 MB, free: 1.148 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007765/0.385, allocations: 167.3 kB / 344.2 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00268/0.3877, allocations: 1.507 MB / 345.7 MB, free: 15.45 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008541/0.3886, allocations: 0.9795 MB / 346.7 MB, free: 14.44 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0005061/0.3891, allocations: 161.2 kB / 346.9 MB, free: 14.29 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001772/0.3893, allocations: 71.28 kB / 346.9 MB, free: 14.22 MB / 286.1 MB Notification: Performance of SimCode: time 1.452e-06/0.3893, allocations: 4 kB / 346.9 MB, free: 14.21 MB / 286.1 MB Notification: Performance of Templates: time 0.0114/0.4007, allocations: 6.677 MB / 353.6 MB, free: 7.5 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: