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.629/1.629, allocations: 171.2 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003542/0.0003544, allocations: 12 kB / 233.2 MB, free: 3.051 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0682/0.06858, allocations: 38.77 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002483/0.0711, allocations: 1.72 MB / 273.6 MB, free: 10.46 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002286/0.07341, allocations: 0.991 MB / 274.6 MB, free: 9.461 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.735e-05/0.07353, allocations: 0 / 274.6 MB, free: 9.461 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001474/0.07369, allocations: 31.77 kB / 274.7 MB, free: 9.43 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001401/0.07384, allocations: 43.86 kB / 274.7 MB, free: 9.387 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003664/0.07422, allocations: 75.84 kB / 274.8 MB, free: 9.312 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000363/0.0746, allocations: 219.5 kB / 275 MB, free: 9.098 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002161/0.07483, allocations: 89.59 kB / 275.1 MB, free: 9.004 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008755/0.07572, allocations: 0.6512 MB / 275.7 MB, free: 8.352 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000266/0.07601, allocations: 187.5 kB / 275.9 MB, free: 8.168 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 7.266e-05/0.07609, allocations: 8 kB / 275.9 MB, free: 8.16 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.939e-05/0.07617, allocations: 8 kB / 275.9 MB, free: 8.152 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001999/0.07639, allocations: 151.5 kB / 276.1 MB, free: 8.004 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001563/0.07656, allocations: 141.3 kB / 276.2 MB, free: 7.859 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009076/0.07748, allocations: 0.7913 MB / 277 MB, free: 7.066 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.836e-06/0.0775, allocations: 3.938 kB / 277 MB, free: 7.062 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.278e-06/0.07751, allocations: 0 / 277 MB, free: 7.062 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.054e-06/0.07753, allocations: 0 / 277 MB, free: 7.062 MB / 234.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.001318/0.07885, allocations: 0.9707 MB / 278 MB, free: 6.016 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.07891, allocations: 12.03 kB / 278 MB, free: 6.004 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001672/0.07909, allocations: 82.97 kB / 278.1 MB, free: 5.922 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006209/0.07972, allocations: 403.5 kB / 278.5 MB, free: 5.488 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.963e-05/0.07979, allocations: 16 kB / 278.5 MB, free: 5.473 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.118e-05/0.07988, allocations: 16 kB / 278.5 MB, free: 5.457 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000811/0.08071, allocations: 305.4 kB / 278.8 MB, free: 5.152 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.08074, allocations: 0 / 278.8 MB, free: 5.152 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.701e-05/0.0808, allocations: 8 kB / 278.8 MB, free: 5.145 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.558e-06/0.08083, allocations: 4 kB / 278.8 MB, free: 5.141 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006215/0.08146, allocations: 211.9 kB / 279 MB, free: 4.934 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001784/0.08326, allocations: 0.8901 MB / 279.9 MB, free: 3.992 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006183/0.0839, allocations: 214.5 kB / 280.1 MB, free: 3.773 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.354e-05/0.08395, allocations: 4 kB / 280.1 MB, free: 3.77 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007593/0.08472, allocations: 386 kB / 280.5 MB, free: 3.355 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 3.302e-06/0.08474, allocations: 0 / 280.5 MB, free: 3.355 MB / 234.7 MB Notification: Performance of matching and sorting (n=24): time 0.001986/0.08674, allocations: 0.8959 MB / 281.4 MB, free: 2.391 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001416/0.0869, allocations: 178.2 kB / 281.6 MB, free: 2.18 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001831/0.08874, allocations: 0.9999 MB / 282.6 MB, free: 1.164 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 7.191e-05/0.08883, allocations: 37.7 kB / 282.6 MB, free: 1.121 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001552/0.089, allocations: 196.3 kB / 282.8 MB, free: 0.9297 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001031/0.08912, allocations: 63.25 kB / 282.9 MB, free: 0.8672 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.242e-05/0.08917, allocations: 8 kB / 282.9 MB, free: 0.8594 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.08935, allocations: 323 kB / 283.2 MB, free: 0.5352 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003822/0.08975, allocations: 123.9 kB / 283.3 MB, free: 424 kB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004131/0.09018, allocations: 164.2 kB / 283.5 MB, free: 244 kB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004523/0.09064, allocations: 234.7 kB / 283.7 MB, free: 15.98 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.823e-06/0.09066, allocations: 0 / 283.7 MB, free: 15.98 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001326/0.092, allocations: 0.5509 MB / 284.2 MB, free: 15.4 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001359/0.09215, allocations: 142.7 kB / 284.4 MB, free: 15.24 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.895e-06/0.09218, allocations: 0 / 284.4 MB, free: 15.24 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.0922, allocations: 7.938 kB / 284.4 MB, free: 15.23 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.821e-05/0.09231, allocations: 16.03 kB / 284.4 MB, free: 15.21 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.922e-06/0.09233, allocations: 0 / 284.4 MB, free: 15.21 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004012/0.09275, allocations: 43.86 kB / 284.5 MB, free: 15.17 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001632/0.09293, allocations: 116 kB / 284.6 MB, free: 15.06 MB / 250.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.0008446/0.09379, allocations: 0.5375 MB / 285.1 MB, free: 14.48 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001361/0.09394, allocations: 71.16 kB / 285.2 MB, free: 14.41 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002844/0.09424, allocations: 130.4 kB / 285.3 MB, free: 14.29 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.09426, allocations: 4 kB / 285.3 MB, free: 14.28 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.666e-06/0.09427, allocations: 0 / 285.3 MB, free: 14.28 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.165e-06/0.09429, allocations: 3.984 kB / 285.3 MB, free: 14.28 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001035/0.09533, allocations: 0.6295 MB / 285.9 MB, free: 13.6 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.604e-06/0.09535, allocations: 0 / 285.9 MB, free: 13.6 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.506e-05/0.09543, allocations: 15.98 kB / 286 MB, free: 13.58 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.09544, allocations: 128 / 286 MB, free: 13.58 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.101e-05/0.09552, allocations: 31.98 kB / 286 MB, free: 13.55 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.767e-06/0.09554, allocations: 0 / 286 MB, free: 13.55 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.785e-06/0.09555, allocations: 0 / 286 MB, free: 13.55 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00155/0.0971, allocations: 0.7054 MB / 286.7 MB, free: 12.8 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00092/0.09804, allocations: 0.4957 MB / 287.2 MB, free: 12.29 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001407/0.0982, allocations: 24 kB / 287.2 MB, free: 12.27 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003004/0.09851, allocations: 27.97 kB / 287.2 MB, free: 12.24 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001948/0.09872, allocations: 51.94 kB / 287.3 MB, free: 12.19 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001632/0.0989, allocations: 111.9 kB / 287.4 MB, free: 12.08 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001332/0.1002, allocations: 0.7289 MB / 288.1 MB, free: 11.35 MB / 250.7 MB Notification: Performance of sort global known variables: time 8.56e-07/0.1003, allocations: 4 kB / 288.1 MB, free: 11.35 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0005107/0.1008, allocations: 91.91 kB / 288.2 MB, free: 11.26 MB / 250.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.0002209/0.101, allocations: 146.4 kB / 288.4 MB, free: 11.11 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.00127/0.1023, allocations: 0.6537 MB / 289 MB, free: 10.4 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.494e-06/0.1023, allocations: 4 kB / 289 MB, free: 10.4 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007868/0.1031, allocations: 0.5365 MB / 289.6 MB, free: 9.812 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007842/0.1039, allocations: 167.3 kB / 289.7 MB, free: 9.652 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003054/0.107, allocations: 1.583 MB / 291.3 MB, free: 8.031 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009491/0.108, allocations: 0.9717 MB / 292.3 MB, free: 7.035 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003055/0.1083, allocations: 99.5 kB / 292.4 MB, free: 6.941 MB / 250.7 MB Notification: Performance of SimCode: time 1.51e-06/0.1083, allocations: 0 / 292.4 MB, free: 6.941 MB / 250.7 MB Notification: Performance of Templates: time 0.009633/0.118, allocations: 5.315 MB / 297.7 MB, free: 1.586 MB / 250.7 MB