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.001607/0.001607, allocations: 99.08 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.001421/0.001421, allocations: 177.3 kB / 15.95 MB, free: 216 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.776/1.776, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.0004854/0.0004855, allocations: 11.98 kB / 278.9 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3071, allocations: 47.58 MB / 326.4 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002174/0.3093, allocations: 1.733 MB / 328.2 MB, free: 60 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002366/0.3117, allocations: 1.019 MB / 329.2 MB, free: 15.29 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001322/0.3118, allocations: 6.625 kB / 329.2 MB, free: 15.29 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001785/0.312, allocations: 25.28 kB / 329.2 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000134/0.3122, allocations: 45.3 kB / 329.3 MB, free: 15.23 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004005/0.3126, allocations: 79.17 kB / 329.3 MB, free: 15.17 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004109/0.313, allocations: 214.3 kB / 329.6 MB, free: 15.02 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002926/0.3133, allocations: 86.72 kB / 329.6 MB, free: 14.98 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008926/0.3142, allocations: 0.6608 MB / 330.3 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000277/0.3145, allocations: 184.4 kB / 330.5 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.429e-05/0.3146, allocations: 8.75 kB / 330.5 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.503e-05/0.3146, allocations: 9.562 kB / 330.5 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000188/0.3148, allocations: 150.9 kB / 330.6 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001569/0.315, allocations: 136.4 kB / 330.8 MB, free: 14.44 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008123/0.3158, allocations: 0.7992 MB / 331.6 MB, free: 13.82 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3158, allocations: 0.9375 kB / 331.6 MB, free: 13.82 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.3158, allocations: 0 / 331.6 MB, free: 13.82 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.828e-06/0.3158, allocations: 0 / 331.6 MB, free: 13.82 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.00122/0.3171, allocations: 0.9659 MB / 332.5 MB, free: 12.93 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.3171, allocations: 8.594 kB / 332.5 MB, free: 12.93 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001676/0.3173, allocations: 79.25 kB / 332.6 MB, free: 12.89 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006054/0.3179, allocations: 404.8 kB / 333 MB, free: 12.54 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.192e-05/0.318, allocations: 17.91 kB / 333 MB, free: 12.54 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.894e-05/0.318, allocations: 24.47 kB / 333.1 MB, free: 12.53 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006487/0.3187, allocations: 297.1 kB / 333.4 MB, free: 12.35 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.3187, allocations: 1.5 kB / 333.4 MB, free: 12.35 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.665e-05/0.3188, allocations: 8.438 kB / 333.4 MB, free: 12.35 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.3188, allocations: 3.844 kB / 333.4 MB, free: 12.35 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004846/0.3193, allocations: 212.8 kB / 333.6 MB, free: 12.25 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001441/0.3207, allocations: 0.8811 MB / 334.5 MB, free: 11.32 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004512/0.3212, allocations: 226.4 kB / 334.7 MB, free: 11.09 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.617e-05/0.3212, allocations: 0 / 334.7 MB, free: 11.09 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006252/0.3219, allocations: 374 kB / 335 MB, free: 10.69 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.693e-06/0.3219, allocations: 0 / 335 MB, free: 10.69 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.001425/0.3233, allocations: 0.9036 MB / 335.9 MB, free: 9.719 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.3234, allocations: 178.2 kB / 336.1 MB, free: 9.508 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001299/0.3247, allocations: 1.004 MB / 337.1 MB, free: 8.492 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.921e-05/0.3248, allocations: 41.7 kB / 337.2 MB, free: 8.445 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.3249, allocations: 149.8 kB / 337.3 MB, free: 8.297 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.728e-05/0.325, allocations: 59.28 kB / 337.4 MB, free: 8.238 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.974e-05/0.325, allocations: 8 kB / 337.4 MB, free: 8.23 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.3252, allocations: 334.8 kB / 337.7 MB, free: 7.895 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002524/0.3255, allocations: 123.9 kB / 337.8 MB, free: 7.773 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002776/0.3258, allocations: 164.2 kB / 338 MB, free: 7.598 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002959/0.3261, allocations: 226.7 kB / 338.2 MB, free: 7.352 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.3261, allocations: 0 / 338.2 MB, free: 7.352 MB / 270.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000954/0.327, allocations: 0.5743 MB / 338.8 MB, free: 6.746 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.3272, allocations: 138.7 kB / 338.9 MB, free: 6.586 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.3272, allocations: 4 kB / 338.9 MB, free: 6.582 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.3272, allocations: 3.938 kB / 338.9 MB, free: 6.578 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/0.3273, allocations: 19.97 kB / 338.9 MB, free: 6.559 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.3273, allocations: 4.062 kB / 338.9 MB, free: 6.555 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003161/0.3276, allocations: 47.8 kB / 339 MB, free: 6.508 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001258/0.3278, allocations: 115.8 kB / 339.1 MB, free: 6.395 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.0006187/0.3284, allocations: 0.522 MB / 339.6 MB, free: 5.836 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.377e-05/0.3285, allocations: 87.05 kB / 339.7 MB, free: 5.75 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002123/0.3287, allocations: 126.4 kB / 339.8 MB, free: 5.617 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.3287, allocations: 4 kB / 339.8 MB, free: 5.613 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.3288, allocations: 0 / 339.8 MB, free: 5.613 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.3288, allocations: 0 / 339.8 MB, free: 5.613 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007893/0.3296, allocations: 0.6219 MB / 340.5 MB, free: 4.941 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.3296, allocations: 0 / 340.5 MB, free: 4.941 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.344e-05/0.3296, allocations: 15.98 kB / 340.5 MB, free: 4.926 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.3296, allocations: 0 / 340.5 MB, free: 4.926 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.95e-05/0.3297, allocations: 23.98 kB / 340.5 MB, free: 4.902 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.3297, allocations: 4 kB / 340.5 MB, free: 4.898 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3297, allocations: 0 / 340.5 MB, free: 4.898 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.3308, allocations: 0.71 MB / 341.2 MB, free: 4.145 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006992/0.3315, allocations: 0.4919 MB / 341.7 MB, free: 3.633 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001049/0.3316, allocations: 24 kB / 341.7 MB, free: 3.609 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002165/0.3318, allocations: 23.89 kB / 341.8 MB, free: 3.586 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001728/0.332, allocations: 59.92 kB / 341.8 MB, free: 3.527 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001199/0.3321, allocations: 124 kB / 341.9 MB, free: 3.406 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.001012/0.3332, allocations: 0.7289 MB / 342.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3332, allocations: 0 / 342.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0006264/0.3338, allocations: 84 kB / 342.7 MB, free: 2.598 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.0001935/0.334, allocations: 146.5 kB / 342.9 MB, free: 2.445 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0009117/0.3349, allocations: 0.6576 MB / 343.5 MB, free: 1.738 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3349, allocations: 0 / 343.5 MB, free: 1.738 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005658/0.3355, allocations: 0.5249 MB / 344.1 MB, free: 1.164 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000731/0.3362, allocations: 171.4 kB / 344.2 MB, free: 1 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002254/0.3385, allocations: 1.507 MB / 345.7 MB, free: 15.46 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007086/0.3392, allocations: 0.9795 MB / 346.7 MB, free: 14.45 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0003898/0.3396, allocations: 161.1 kB / 346.9 MB, free: 14.3 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001773/0.3398, allocations: 75.28 kB / 347 MB, free: 14.23 MB / 286.1 MB Notification: Performance of SimCode: time 8.91e-07/0.3398, allocations: 0 / 347 MB, free: 14.23 MB / 286.1 MB Notification: Performance of Templates: time 0.01242/0.3523, allocations: 6.674 MB / 353.6 MB, free: 7.516 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: