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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.622/1.622, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003653/0.0003655, allocations: 12 kB / 233.2 MB, free: 3.023 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06997/0.07037, allocations: 38.76 MB / 272 MB, free: 12.18 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2909/0.3614, allocations: 73.77 MB / 345.8 MB, free: 160 kB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002312/0.3616, allocations: 70.03 kB / 345.8 MB, free: 124 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1045/0.4661, allocations: 34.37 MB / 380.2 MB, free: 3.824 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.648e-06/0.4662, allocations: 0 / 380.2 MB, free: 3.824 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.236e-05/0.4662, allocations: 15.94 kB / 380.2 MB, free: 3.809 MB / 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.001447/0.4677, allocations: 0.9909 MB / 381.2 MB, free: 2.789 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.4677, allocations: 12.03 kB / 381.2 MB, free: 2.777 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001711/0.4679, allocations: 78.97 kB / 381.3 MB, free: 2.699 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006882/0.4686, allocations: 403.8 kB / 381.7 MB, free: 2.293 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.591e-05/0.4687, allocations: 14.5 kB / 381.7 MB, free: 2.285 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.289e-05/0.4688, allocations: 19.44 kB / 381.7 MB, free: 2.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008124/0.4696, allocations: 297.7 kB / 382 MB, free: 2.043 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.4696, allocations: 4 kB / 382 MB, free: 2.039 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.92e-05/0.4697, allocations: 14.3 kB / 382 MB, free: 2.031 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.484e-06/0.4697, allocations: 4 kB / 382 MB, free: 2.027 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006462/0.4704, allocations: 208.6 kB / 382.3 MB, free: 1.824 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001851/0.4722, allocations: 0.8864 MB / 383.1 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006504/0.4729, allocations: 222.4 kB / 383.4 MB, free: 0.6562 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.952e-05/0.473, allocations: 0 / 383.4 MB, free: 0.6562 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007465/0.4737, allocations: 385.9 kB / 383.7 MB, free: 248 kB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 2.969e-06/0.4737, allocations: 0 / 383.7 MB, free: 248 kB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.002123/0.4759, allocations: 0.8842 MB / 384.6 MB, free: 15.29 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001464/0.4761, allocations: 178.2 kB / 384.8 MB, free: 15.08 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001831/0.4779, allocations: 0.8782 MB / 385.7 MB, free: 14.2 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.504e-05/0.478, allocations: 33.7 kB / 385.7 MB, free: 14.16 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001713/0.4782, allocations: 208.2 kB / 385.9 MB, free: 13.95 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001101/0.4783, allocations: 55.34 kB / 386 MB, free: 13.89 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.484e-05/0.4784, allocations: 12 kB / 386 MB, free: 13.88 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.4786, allocations: 327 kB / 386.3 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004035/0.479, allocations: 116 kB / 386.4 MB, free: 13.44 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004201/0.4794, allocations: 160.2 kB / 386.6 MB, free: 13.27 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004496/0.4799, allocations: 230.6 kB / 386.8 MB, free: 13.02 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.4799, allocations: 4 kB / 386.8 MB, free: 13.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001408/0.4813, allocations: 0.5438 MB / 387.3 MB, free: 12.44 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001366/0.4815, allocations: 134.8 kB / 387.5 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.052e-06/0.4815, allocations: 0 / 387.5 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.4815, allocations: 3.984 kB / 387.5 MB, free: 12.28 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.682e-05/0.4816, allocations: 15.94 kB / 387.5 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.208e-06/0.4817, allocations: 4.094 kB / 387.5 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003939/0.4821, allocations: 39.81 kB / 387.5 MB, free: 12.22 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000176/0.4823, allocations: 115.9 kB / 387.6 MB, free: 12.11 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.0009733/0.4832, allocations: 0.5414 MB / 388.2 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001504/0.4834, allocations: 79.06 kB / 388.3 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003014/0.4837, allocations: 126.4 kB / 388.4 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.417e-06/0.4838, allocations: 7.984 kB / 388.4 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.4838, allocations: 4 kB / 388.4 MB, free: 11.31 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.349e-06/0.4838, allocations: 3.938 kB / 388.4 MB, free: 11.31 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001044/0.4848, allocations: 0.6219 MB / 389 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.818e-06/0.4849, allocations: 0 / 389 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.853e-05/0.4849, allocations: 11.98 kB / 389 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.171e-06/0.4849, allocations: 0 / 389 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.927e-05/0.485, allocations: 23.98 kB / 389.1 MB, free: 10.6 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.353e-06/0.4851, allocations: 0 / 389.1 MB, free: 10.6 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.4851, allocations: 0 / 389.1 MB, free: 10.6 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001586/0.4867, allocations: 0.6973 MB / 389.8 MB, free: 9.863 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/0.4877, allocations: 499.7 kB / 390.2 MB, free: 9.355 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000147/0.4878, allocations: 23.98 kB / 390.3 MB, free: 9.332 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003263/0.4882, allocations: 19.98 kB / 390.3 MB, free: 9.312 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002098/0.4884, allocations: 59.92 kB / 390.3 MB, free: 9.254 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001766/0.4886, allocations: 115.9 kB / 390.5 MB, free: 9.141 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00147/0.4901, allocations: 0.7328 MB / 391.2 MB, free: 8.414 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.059e-06/0.4901, allocations: 0 / 391.2 MB, free: 8.414 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005308/0.4907, allocations: 84 kB / 391.3 MB, free: 8.332 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.0002345/0.4909, allocations: 138.5 kB / 391.4 MB, free: 8.184 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001323/0.4922, allocations: 0.654 MB / 392.1 MB, free: 7.48 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.919e-06/0.4923, allocations: 8.062 kB / 392.1 MB, free: 7.473 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008226/0.4931, allocations: 0.5288 MB / 392.6 MB, free: 6.895 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008469/0.494, allocations: 180.5 kB / 392.8 MB, free: 6.723 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003227/0.4972, allocations: 1.572 MB / 394.3 MB, free: 5.117 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009772/0.4982, allocations: 0.9795 MB / 395.3 MB, free: 4.113 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003791/0.4986, allocations: 91.25 kB / 395.4 MB, free: 4.023 MB / 314.7 MB Notification: Performance of SimCode: time 1.584e-06/0.4986, allocations: 0 / 395.4 MB, free: 4.023 MB / 314.7 MB Notification: Performance of Templates: time 0.01079/0.5094, allocations: 5.319 MB / 400.7 MB, free: 14.65 MB / 330.7 MB