Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadModel(Modelica): time 2.099/2.099, allocations: 194.8 MB / 211.6 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003782/0.0003784, allocations: 8 kB / 263.8 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08324/0.08365, allocations: 44.51 MB / 308.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002621/0.08632, allocations: 1.728 MB / 310.1 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002519/0.08888, allocations: 1.003 MB / 311.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000151/0.08907, allocations: 4 kB / 311.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001505/0.08924, allocations: 23.78 kB / 311.1 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000161/0.08941, allocations: 55.83 kB / 311.2 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003939/0.08982, allocations: 71.84 kB / 311.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003722/0.09021, allocations: 211.6 kB / 311.4 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002224/0.09045, allocations: 93.56 kB / 311.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000942/0.0914, allocations: 0.6551 MB / 312.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002755/0.0917, allocations: 179.5 kB / 312.4 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.615e-05/0.09179, allocations: 8 kB / 312.4 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.281e-05/0.09187, allocations: 12 kB / 312.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001912/0.09207, allocations: 143.5 kB / 312.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001694/0.09226, allocations: 145.2 kB / 312.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009674/0.09324, allocations: 0.7874 MB / 313.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.918e-06/0.09327, allocations: 4 kB / 313.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.374e-06/0.09329, allocations: 0 / 313.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.363e-05/0.09333, allocations: 0 / 313.5 MB, free: 11.88 MB / 266.7 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.001431/0.09478, allocations: 0.9707 MB / 314.4 MB, free: 10.84 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.09484, allocations: 8.031 kB / 314.4 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001914/0.09504, allocations: 83.02 kB / 314.5 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006162/0.09567, allocations: 395.5 kB / 314.9 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.137e-05/0.09574, allocations: 16 kB / 314.9 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.047e-05/0.09583, allocations: 20 kB / 314.9 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008299/0.09667, allocations: 305.3 kB / 315.2 MB, free: 9.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.09671, allocations: 0 / 315.2 MB, free: 9.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.09e-05/0.09678, allocations: 12 kB / 315.3 MB, free: 9.969 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.215e-06/0.0968, allocations: 4 kB / 315.3 MB, free: 9.965 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006322/0.09744, allocations: 207.9 kB / 315.5 MB, free: 9.762 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001891/0.09935, allocations: 0.8902 MB / 316.3 MB, free: 8.82 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006578/0.1, allocations: 218.5 kB / 316.6 MB, free: 8.598 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.905e-05/0.1001, allocations: 0 / 316.6 MB, free: 8.598 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007823/0.1009, allocations: 386 kB / 316.9 MB, free: 8.184 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 3.201e-06/0.1009, allocations: 3.938 kB / 316.9 MB, free: 8.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.002131/0.103, allocations: 0.9077 MB / 317.9 MB, free: 7.203 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001418/0.1032, allocations: 174.2 kB / 318 MB, free: 6.996 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001917/0.1052, allocations: 1 MB / 319 MB, free: 5.98 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000109/0.1053, allocations: 37.64 kB / 319.1 MB, free: 5.938 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001773/0.1055, allocations: 204.2 kB / 319.3 MB, free: 5.738 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.1056, allocations: 59.36 kB / 319.3 MB, free: 5.68 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.059e-05/0.1057, allocations: 4 kB / 319.3 MB, free: 5.676 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.1058, allocations: 322.8 kB / 319.6 MB, free: 5.352 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00041/0.1063, allocations: 116 kB / 319.7 MB, free: 5.238 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000419/0.1067, allocations: 168.2 kB / 319.9 MB, free: 5.059 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004738/0.1072, allocations: 226.7 kB / 320.1 MB, free: 4.812 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.1072, allocations: 0 / 320.1 MB, free: 4.812 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001379/0.1086, allocations: 0.5626 MB / 320.7 MB, free: 4.219 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000138/0.1088, allocations: 134.8 kB / 320.8 MB, free: 4.062 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.1088, allocations: 4 kB / 320.8 MB, free: 4.059 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.856e-05/0.1088, allocations: 3.953 kB / 320.8 MB, free: 4.055 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001028/0.1089, allocations: 19.92 kB / 320.9 MB, free: 4.035 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.803e-06/0.109, allocations: 0 / 320.9 MB, free: 4.035 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004429/0.1094, allocations: 43.88 kB / 320.9 MB, free: 3.992 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001747/0.1096, allocations: 115.9 kB / 321 MB, free: 3.879 MB / 266.7 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.0009283/0.1105, allocations: 0.5298 MB / 321.5 MB, free: 3.312 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001552/0.1107, allocations: 79.06 kB / 321.6 MB, free: 3.234 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003404/0.1111, allocations: 134.4 kB / 321.7 MB, free: 3.094 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.1111, allocations: 8 kB / 321.8 MB, free: 3.086 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.866e-06/0.1111, allocations: 7.891 kB / 321.8 MB, free: 3.078 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.6e-06/0.1111, allocations: 0 / 321.8 MB, free: 3.078 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001081/0.1122, allocations: 0.6142 MB / 322.4 MB, free: 2.414 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.1122, allocations: 0 / 322.4 MB, free: 2.414 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.768e-05/0.1123, allocations: 11.98 kB / 322.4 MB, free: 2.402 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.67e-06/0.1123, allocations: 0 / 322.4 MB, free: 2.402 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.535e-05/0.1124, allocations: 27.98 kB / 322.4 MB, free: 2.375 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.1124, allocations: 0 / 322.4 MB, free: 2.375 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.239e-06/0.1125, allocations: 3.953 kB / 322.4 MB, free: 2.371 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001645/0.1141, allocations: 0.7036 MB / 323.1 MB, free: 1.625 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001096/0.1152, allocations: 0.4958 MB / 323.6 MB, free: 1.109 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001559/0.1154, allocations: 24.12 kB / 323.6 MB, free: 1.086 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003321/0.1158, allocations: 27.98 kB / 323.7 MB, free: 1.059 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002104/0.116, allocations: 55.88 kB / 323.7 MB, free: 1.004 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001745/0.1162, allocations: 119.9 kB / 323.8 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001505/0.1177, allocations: 0.7291 MB / 324.6 MB, free: 164 kB / 266.7 MB Notification: Performance of sort global known variables: time 9.36e-07/0.1177, allocations: 4 kB / 324.6 MB, free: 160 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009196/0.1187, allocations: 91.84 kB / 324.7 MB, free: 68 kB / 266.7 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.0003707/0.1191, allocations: 142.7 kB / 324.8 MB, free: 15.92 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001704/0.1208, allocations: 0.6614 MB / 325.5 MB, free: 15.21 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.731e-06/0.1208, allocations: 0 / 325.5 MB, free: 15.21 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008331/0.1217, allocations: 0.5288 MB / 326 MB, free: 14.63 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008541/0.1225, allocations: 162.3 kB / 326.2 MB, free: 14.48 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003351/0.1259, allocations: 1.583 MB / 327.7 MB, free: 12.86 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001015/0.127, allocations: 0.9756 MB / 328.7 MB, free: 11.85 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000323/0.1273, allocations: 99.23 kB / 328.8 MB, free: 11.75 MB / 282.7 MB Notification: Performance of SimCode: time 1.54e-06/0.1273, allocations: 0 / 328.8 MB, free: 11.75 MB / 282.7 MB Notification: Performance of Templates: time 0.0105/0.1378, allocations: 5.294 MB / 334.1 MB, free: 6.414 MB / 282.7 MB