Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.998/1.998, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003611/0.0003613, allocations: 8 kB / 264.5 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09309/0.09348, allocations: 44.51 MB / 309 MB, free: 1.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4034/0.4969, allocations: 79.07 MB / 388 MB, free: 14.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002776/0.4973, allocations: 81.7 kB / 388.1 MB, free: 14.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1061/0.6034, allocations: 34.37 MB / 422.5 MB, free: 6.922 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.6034, allocations: 0 / 422.5 MB, free: 6.922 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.907e-05/0.6035, allocations: 7.625 kB / 422.5 MB, free: 6.922 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.001331/0.6048, allocations: 0.9934 MB / 423.5 MB, free: 6.055 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.6049, allocations: 15.69 kB / 423.5 MB, free: 6.051 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001922/0.6051, allocations: 78.03 kB / 423.6 MB, free: 6.012 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006678/0.6057, allocations: 398.1 kB / 424 MB, free: 5.719 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.961e-05/0.6058, allocations: 18.03 kB / 424 MB, free: 5.719 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.322e-05/0.6059, allocations: 22.55 kB / 424 MB, free: 5.715 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008755/0.6068, allocations: 300.5 kB / 424.3 MB, free: 5.613 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.6068, allocations: 0 / 424.3 MB, free: 5.613 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.29e-05/0.6069, allocations: 6.719 kB / 424.3 MB, free: 5.613 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.817e-06/0.6069, allocations: 3.812 kB / 424.3 MB, free: 5.613 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007158/0.6076, allocations: 214.5 kB / 424.5 MB, free: 5.578 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001805/0.6095, allocations: 0.8842 MB / 425.4 MB, free: 5.07 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007203/0.6102, allocations: 217.9 kB / 425.6 MB, free: 5.027 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.038e-05/0.6103, allocations: 3.281 kB / 425.6 MB, free: 5.027 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007533/0.6111, allocations: 382.2 kB / 426 MB, free: 4.777 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 3.527e-06/0.6111, allocations: 0 / 426 MB, free: 4.777 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.002137/0.6132, allocations: 0.9023 MB / 426.9 MB, free: 4.328 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.521e-05/0.6134, allocations: 178.7 kB / 427.1 MB, free: 4.133 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001912/0.6153, allocations: 1.009 MB / 428.1 MB, free: 3.684 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001258/0.6155, allocations: 40.73 kB / 428.1 MB, free: 3.648 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.6156, allocations: 198.6 kB / 428.3 MB, free: 3.488 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001094/0.6157, allocations: 50.48 kB / 428.4 MB, free: 3.457 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.779e-05/0.6158, allocations: 7.375 kB / 428.4 MB, free: 3.457 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.664e-05/0.6159, allocations: 322.7 kB / 428.7 MB, free: 3.141 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004431/0.6163, allocations: 126.6 kB / 428.8 MB, free: 3.121 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004392/0.6168, allocations: 159.2 kB / 429 MB, free: 3.062 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004435/0.6172, allocations: 226.7 kB / 429.2 MB, free: 2.926 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.6172, allocations: 3.984 kB / 429.2 MB, free: 2.922 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001371/0.6186, allocations: 0.5614 MB / 429.8 MB, free: 2.711 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001013/0.6188, allocations: 133.8 kB / 429.9 MB, free: 2.578 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.6188, allocations: 7.906 kB / 429.9 MB, free: 2.574 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.368e-05/0.6188, allocations: 0 / 429.9 MB, free: 2.574 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.6189, allocations: 19.67 kB / 429.9 MB, free: 2.566 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.619, allocations: 3.953 kB / 429.9 MB, free: 2.562 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004992/0.6195, allocations: 35.12 kB / 429.9 MB, free: 2.555 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001708/0.6197, allocations: 113 kB / 430.1 MB, free: 2.547 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.0009652/0.6206, allocations: 0.5366 MB / 430.6 MB, free: 2.207 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001629/0.6208, allocations: 77.94 kB / 430.7 MB, free: 2.168 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003564/0.6212, allocations: 128.7 kB / 430.8 MB, free: 2.094 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.6212, allocations: 0 / 430.8 MB, free: 2.094 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.6212, allocations: 3.984 kB / 430.8 MB, free: 2.09 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.022e-06/0.6212, allocations: 3.953 kB / 430.8 MB, free: 2.086 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009646/0.6222, allocations: 0.6151 MB / 431.4 MB, free: 1.711 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.6222, allocations: 0 / 431.4 MB, free: 1.711 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.248e-05/0.6223, allocations: 19.61 kB / 431.4 MB, free: 1.703 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.622e-06/0.6223, allocations: 0 / 431.4 MB, free: 1.703 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.348e-05/0.6224, allocations: 27.17 kB / 431.5 MB, free: 1.699 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.6225, allocations: 3.938 kB / 431.5 MB, free: 1.695 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.6225, allocations: 48 / 431.5 MB, free: 1.695 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00163/0.6241, allocations: 0.7137 MB / 432.2 MB, free: 1.402 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001026/0.6252, allocations: 0.4913 MB / 432.7 MB, free: 1.133 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001846/0.6254, allocations: 21.19 kB / 432.7 MB, free: 1.133 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000404/0.6258, allocations: 38.34 kB / 432.7 MB, free: 1.117 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002167/0.626, allocations: 52.03 kB / 432.8 MB, free: 1.102 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001499/0.6262, allocations: 118.2 kB / 432.9 MB, free: 1.09 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001458/0.6276, allocations: 0.73 MB / 433.6 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.6277, allocations: 3.938 kB / 433.6 MB, free: 0.7734 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006122/0.6283, allocations: 86.16 kB / 433.7 MB, free: 0.7734 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.0002113/0.6285, allocations: 139.7 kB / 433.9 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001299/0.6298, allocations: 0.6503 MB / 434.5 MB, free: 392 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.6299, allocations: 0 / 434.5 MB, free: 392 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009027/0.6308, allocations: 0.5327 MB / 435 MB, free: 104 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001209/0.632, allocations: 162.6 kB / 435.2 MB, free: 60 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003731/0.6358, allocations: 1.572 MB / 436.8 MB, free: 15.17 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009409/0.6368, allocations: 0.9779 MB / 437.7 MB, free: 14.33 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004349/0.6373, allocations: 98.12 kB / 437.8 MB, free: 14.27 MB / 330.7 MB Notification: Performance of SimCode: time 1.032e-06/0.6373, allocations: 0 / 437.8 MB, free: 14.27 MB / 330.7 MB Notification: Performance of Templates: time 0.013/0.6503, allocations: 5.305 MB / 443.1 MB, free: 9.172 MB / 330.7 MB