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 1.878/1.878, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000568/0.0005681, allocations: 8 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09343/0.09403, allocations: 44.51 MB / 308.4 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3393/0.4334, allocations: 79.09 MB / 387.5 MB, free: 18.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002235/0.4337, allocations: 71.39 kB / 387.6 MB, free: 18.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09183/0.5255, allocations: 34.36 MB / 422 MB, free: 11.39 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.998e-06/0.5256, allocations: 0 / 422 MB, free: 11.39 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.537e-05/0.5256, allocations: 15.44 kB / 422 MB, free: 11.39 MB / 314.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.001009/0.5266, allocations: 0.9892 MB / 423 MB, free: 10.53 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.5267, allocations: 9.625 kB / 423 MB, free: 10.53 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001372/0.5268, allocations: 81.44 kB / 423.1 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005213/0.5274, allocations: 406 kB / 423.4 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.404e-05/0.5274, allocations: 19.03 kB / 423.5 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.644e-05/0.5275, allocations: 19.06 kB / 423.5 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006872/0.5282, allocations: 302.5 kB / 423.8 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.5282, allocations: 3.984 kB / 423.8 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.475e-05/0.5283, allocations: 7.25 kB / 423.8 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.182e-06/0.5283, allocations: 3.875 kB / 423.8 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005636/0.5289, allocations: 209.9 kB / 424 MB, free: 10.04 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001467/0.5304, allocations: 0.8757 MB / 424.9 MB, free: 9.543 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005527/0.5309, allocations: 219.9 kB / 425.1 MB, free: 9.496 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.017e-05/0.531, allocations: 3.875 kB / 425.1 MB, free: 9.496 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006189/0.5316, allocations: 394.9 kB / 425.5 MB, free: 9.234 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 3.801e-06/0.5316, allocations: 0 / 425.5 MB, free: 9.234 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.001804/0.5335, allocations: 0.8857 MB / 426.4 MB, free: 8.789 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.844e-05/0.5335, allocations: 180.8 kB / 426.5 MB, free: 8.594 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001526/0.5351, allocations: 0.8878 MB / 427.4 MB, free: 8.207 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.789e-05/0.5352, allocations: 33.17 kB / 427.5 MB, free: 8.176 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.258e-05/0.5353, allocations: 201 kB / 427.7 MB, free: 8.008 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.642e-05/0.5354, allocations: 56.27 kB / 427.7 MB, free: 7.977 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.865e-05/0.5354, allocations: 3.875 kB / 427.7 MB, free: 7.977 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.714e-05/0.5355, allocations: 321.9 kB / 428 MB, free: 7.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003462/0.5359, allocations: 118.9 kB / 428.1 MB, free: 7.648 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003479/0.5362, allocations: 166.7 kB / 428.3 MB, free: 7.586 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003684/0.5366, allocations: 226.9 kB / 428.5 MB, free: 7.449 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.98e-06/0.5366, allocations: 0 / 428.5 MB, free: 7.449 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001224/0.5379, allocations: 0.5561 MB / 429.1 MB, free: 7.23 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.774e-05/0.538, allocations: 136.8 kB / 429.2 MB, free: 7.098 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.44e-06/0.538, allocations: 0 / 429.2 MB, free: 7.098 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.87e-05/0.538, allocations: 4.062 kB / 429.2 MB, free: 7.094 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.948e-05/0.5381, allocations: 15.61 kB / 429.2 MB, free: 7.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.952e-06/0.5381, allocations: 11.84 kB / 429.3 MB, free: 7.082 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003909/0.5385, allocations: 34.66 kB / 429.3 MB, free: 7.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001252/0.5387, allocations: 112.4 kB / 429.4 MB, free: 7.062 MB / 314.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.000788/0.5395, allocations: 0.5331 MB / 429.9 MB, free: 6.727 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001203/0.5396, allocations: 81.62 kB / 430 MB, free: 6.684 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002659/0.5399, allocations: 129.1 kB / 430.1 MB, free: 6.613 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.047e-06/0.5399, allocations: 3.312 kB / 430.1 MB, free: 6.613 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.502e-06/0.5399, allocations: 0 / 430.1 MB, free: 6.613 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.4e-06/0.5399, allocations: 7.938 kB / 430.1 MB, free: 6.605 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008599/0.5408, allocations: 0.6155 MB / 430.8 MB, free: 6.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.218e-06/0.5408, allocations: 0 / 430.8 MB, free: 6.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.973e-05/0.5409, allocations: 17.52 kB / 430.8 MB, free: 6.223 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.854e-06/0.5409, allocations: 4 kB / 430.8 MB, free: 6.219 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.232e-05/0.541, allocations: 26.89 kB / 430.8 MB, free: 6.215 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.773e-06/0.541, allocations: 0 / 430.8 MB, free: 6.215 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.892e-06/0.541, allocations: 3.188 kB / 430.8 MB, free: 6.215 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001305/0.5423, allocations: 0.684 MB / 431.5 MB, free: 5.934 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008516/0.5432, allocations: 0.4927 MB / 432 MB, free: 5.664 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000139/0.5434, allocations: 21.91 kB / 432 MB, free: 5.664 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003195/0.5437, allocations: 35.28 kB / 432 MB, free: 5.648 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001959/0.5439, allocations: 53.75 kB / 432.1 MB, free: 5.633 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001305/0.5441, allocations: 121.2 kB / 432.2 MB, free: 5.617 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001186/0.5453, allocations: 0.7343 MB / 432.9 MB, free: 5.309 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.57e-07/0.5453, allocations: 3.938 kB / 433 MB, free: 5.305 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000521/0.5458, allocations: 89.39 kB / 433 MB, free: 5.301 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) * 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.0001816/0.546, allocations: 132.5 kB / 433.2 MB, free: 5.207 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001051/0.5471, allocations: 0.6489 MB / 433.8 MB, free: 4.914 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.084e-06/0.5471, allocations: 0 / 433.8 MB, free: 4.914 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000631/0.5477, allocations: 0.5339 MB / 434.4 MB, free: 4.637 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008601/0.5486, allocations: 162.8 kB / 434.5 MB, free: 4.586 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002608/0.5512, allocations: 1.569 MB / 436.1 MB, free: 3.711 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006336/0.5519, allocations: 0.9855 MB / 437.1 MB, free: 2.867 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003733/0.5523, allocations: 90.23 kB / 437.2 MB, free: 2.809 MB / 314.7 MB Notification: Performance of SimCode: time 1.932e-06/0.5523, allocations: 0 / 437.2 MB, free: 2.809 MB / 314.7 MB Notification: Performance of Templates: time 0.008773/0.5611, allocations: 5.309 MB / 442.5 MB, free: 14.04 MB / 330.7 MB