Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadModel(Modelica): time 1.673/1.673, allocations: 171.3 MB / 179.2 MB, free: 7.586 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.226e-05/2.234e-05, allocations: 8 kB / 222.5 MB, free: 8.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06908/0.06912, allocations: 38.76 MB / 261.3 MB, free: 1.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2837/0.3529, allocations: 73.03 MB / 334.3 MB, free: 15.3 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002332/0.3532, allocations: 73.64 kB / 334.4 MB, free: 15.26 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1335/0.4867, allocations: 34.34 MB / 368.7 MB, free: 472 kB / 298.7 MB Notification: Performance of FrontEnd: time 3.845e-06/0.4868, allocations: 0 / 368.7 MB, free: 472 kB / 298.7 MB Notification: Performance of Transformations before backend: time 5.094e-05/0.4868, allocations: 15.94 kB / 368.7 MB, free: 456 kB / 298.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.001861/0.4887, allocations: 0.874 MB / 369.6 MB, free: 15.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.221e-05/0.4888, allocations: 16.02 kB / 369.6 MB, free: 15.48 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002667/0.4891, allocations: 79.06 kB / 369.7 MB, free: 15.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001125/0.4902, allocations: 399.6 kB / 370.1 MB, free: 14.98 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.258e-05/0.4903, allocations: 11.95 kB / 370.1 MB, free: 14.96 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001201/0.4905, allocations: 16 kB / 370.1 MB, free: 14.95 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008994/0.4914, allocations: 187.9 kB / 370.3 MB, free: 14.77 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/0.4925, allocations: 273.4 kB / 370.6 MB, free: 14.49 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.782e-05/0.4926, allocations: 0 / 370.6 MB, free: 14.49 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.492e-05/0.4927, allocations: 11.98 kB / 370.6 MB, free: 14.48 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.781e-05/0.4928, allocations: 4 kB / 370.6 MB, free: 14.48 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003017/0.4958, allocations: 0.8438 MB / 371.4 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008211/0.4967, allocations: 206.5 kB / 371.6 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004932/0.4972, allocations: 144.8 kB / 371.8 MB, free: 13.23 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.936e-05/0.4972, allocations: 4 kB / 371.8 MB, free: 13.23 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001021/0.4983, allocations: 366 kB / 372.1 MB, free: 12.84 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 6.138e-06/0.4983, allocations: 0 / 372.1 MB, free: 12.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.002081/0.5004, allocations: 468.4 kB / 372.6 MB, free: 12.37 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002066/0.5007, allocations: 174.2 kB / 372.8 MB, free: 12.16 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003013/0.5037, allocations: 0.8471 MB / 373.6 MB, free: 11.3 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001608/0.5039, allocations: 29.7 kB / 373.6 MB, free: 11.27 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002525/0.5042, allocations: 208.2 kB / 373.8 MB, free: 11.07 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001818/0.5044, allocations: 51.36 kB / 373.9 MB, free: 11.02 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.964e-05/0.5045, allocations: 4 kB / 373.9 MB, free: 11.01 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000224/0.5048, allocations: 335 kB / 374.2 MB, free: 10.68 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005105/0.5053, allocations: 108 kB / 374.3 MB, free: 10.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005743/0.5059, allocations: 146.5 kB / 374.5 MB, free: 10.42 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004242/0.5064, allocations: 87.95 kB / 374.6 MB, free: 10.33 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.553e-06/0.5064, allocations: 0 / 374.6 MB, free: 10.33 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001901/0.5083, allocations: 413.3 kB / 375 MB, free: 9.922 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002036/0.5085, allocations: 134.8 kB / 375.1 MB, free: 9.766 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.439e-05/0.5086, allocations: 4 kB / 375.1 MB, free: 9.762 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.176e-05/0.5086, allocations: 4.047 kB / 375.1 MB, free: 9.758 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001712/0.5088, allocations: 19.97 kB / 375.1 MB, free: 9.738 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.824e-06/0.5088, allocations: 0 / 375.1 MB, free: 9.738 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007661/0.5096, allocations: 31.83 kB / 375.1 MB, free: 9.707 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002875/0.51, allocations: 119.9 kB / 375.3 MB, free: 9.59 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 28 (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,$PRE.Adder.XOR.G2.y,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,$PRE.Adder.AND.G2.y,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 () * 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.0005015/0.5105, allocations: 273.9 kB / 375.5 MB, free: 9.293 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002676/0.5108, allocations: 79.14 kB / 375.6 MB, free: 9.215 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006286/0.5114, allocations: 122.2 kB / 375.7 MB, free: 9.09 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-05/0.5115, allocations: 4 kB / 375.7 MB, free: 9.086 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.693e-06/0.5115, allocations: 0 / 375.7 MB, free: 9.086 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.5115, allocations: 0 / 375.7 MB, free: 9.086 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001768/0.5133, allocations: 0.5833 MB / 376.3 MB, free: 8.465 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.734e-06/0.5134, allocations: 0 / 376.3 MB, free: 8.465 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001395/0.5135, allocations: 24.05 kB / 376.3 MB, free: 8.441 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.44e-06/0.5136, allocations: 4 kB / 376.3 MB, free: 8.438 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00015/0.5137, allocations: 28.08 kB / 376.4 MB, free: 8.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.609e-06/0.5138, allocations: 3.938 kB / 376.4 MB, free: 8.406 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.74e-06/0.5138, allocations: 3.984 kB / 376.4 MB, free: 8.402 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002175/0.516, allocations: 0.5195 MB / 376.9 MB, free: 7.863 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001785/0.5178, allocations: 0.4957 MB / 377.4 MB, free: 7.348 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002733/0.5181, allocations: 20 kB / 377.4 MB, free: 7.328 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005825/0.5187, allocations: 31.91 kB / 377.4 MB, free: 7.297 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003326/0.5191, allocations: 51.94 kB / 377.5 MB, free: 7.246 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002951/0.5194, allocations: 119.9 kB / 377.6 MB, free: 7.129 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002401/0.5218, allocations: 0.6822 MB / 378.3 MB, free: 6.449 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.931e-06/0.5219, allocations: 0 / 378.3 MB, free: 6.449 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00106/0.523, allocations: 83.98 kB / 378.4 MB, free: 6.367 MB / 314.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.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.XOR.G1.auxiliary_n,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,Adder.AND.G1.auxiliary_n,b.y,a.y) * 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.000367/0.5234, allocations: 138.7 kB / 378.5 MB, free: 6.219 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001778/0.5252, allocations: 0.6147 MB / 379.1 MB, free: 5.555 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.682e-06/0.5252, allocations: 0 / 379.1 MB, free: 5.555 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001146/0.5264, allocations: 0.5171 MB / 379.6 MB, free: 4.988 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001597/0.528, allocations: 169.7 kB / 379.8 MB, free: 4.828 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004708/0.5327, allocations: 1.143 MB / 381 MB, free: 3.648 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00163/0.5344, allocations: 0.9874 MB / 381.9 MB, free: 2.633 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006267/0.5351, allocations: 87.25 kB / 382 MB, free: 2.547 MB / 314.7 MB Notification: Performance of SimCode: time 2.971e-06/0.5351, allocations: 288 / 382 MB, free: 2.547 MB / 314.7 MB Notification: Performance of Templates: time 0.01855/0.5537, allocations: 5.291 MB / 387.3 MB, free: 13.21 MB / 330.7 MB