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.542/1.542, allocations: 171.2 MB / 184.2 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.262e-05/2.271e-05, allocations: 4 kB / 228.8 MB, free: 15.33 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1988/0.1988, allocations: 38.77 MB / 267.6 MB, free: 9.43 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1073/0.3062, allocations: 73.68 MB / 341.3 MB, free: 15.64 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002242/0.3064, allocations: 75.95 kB / 341.3 MB, free: 15.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2721/0.5786, allocations: 34.59 MB / 375.9 MB, free: 71.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.788e-06/0.5787, allocations: 0 / 375.9 MB, free: 71.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.048e-05/0.5787, allocations: 8 kB / 375.9 MB, free: 71.2 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.0008402/0.5795, allocations: 0.8662 MB / 376.8 MB, free: 70.26 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.5796, allocations: 11.97 kB / 376.8 MB, free: 70.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001312/0.5797, allocations: 83.02 kB / 376.9 MB, free: 70.17 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005089/0.5803, allocations: 401.4 kB / 377.3 MB, free: 69.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.251e-05/0.5803, allocations: 20 kB / 377.3 MB, free: 69.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.649e-05/0.5804, allocations: 16 kB / 377.3 MB, free: 69.72 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005933/0.581, allocations: 297.4 kB / 377.6 MB, free: 69.42 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.581, allocations: 4 kB / 377.6 MB, free: 69.42 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.504e-05/0.5811, allocations: 11.98 kB / 377.6 MB, free: 69.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.5811, allocations: 4 kB / 377.6 MB, free: 69.4 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004491/0.5816, allocations: 207.7 kB / 377.8 MB, free: 69.2 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00141/0.583, allocations: 0.8735 MB / 378.7 MB, free: 68.28 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000435/0.5835, allocations: 210.5 kB / 378.9 MB, free: 68.06 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002756/0.5838, allocations: 152.8 kB / 379.1 MB, free: 67.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.757e-05/0.5838, allocations: 4.266 kB / 379.1 MB, free: 67.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004932/0.5843, allocations: 392.1 kB / 379.5 MB, free: 67.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 3.452e-06/0.5843, allocations: 0 / 379.5 MB, free: 67.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001066/0.5854, allocations: 0.5814 MB / 380 MB, free: 66.88 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.809e-05/0.5855, allocations: 174.2 kB / 380.2 MB, free: 66.67 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001318/0.5868, allocations: 0.8821 MB / 381.1 MB, free: 65.78 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.352e-05/0.5869, allocations: 37.7 kB / 381.1 MB, free: 65.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.269e-05/0.587, allocations: 204.3 kB / 381.3 MB, free: 65.54 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.995e-05/0.5871, allocations: 50.7 kB / 381.4 MB, free: 65.49 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.079e-05/0.5871, allocations: 8 kB / 381.4 MB, free: 65.48 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.859e-05/0.5872, allocations: 319.5 kB / 381.7 MB, free: 65.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000279/0.5875, allocations: 120 kB / 381.8 MB, free: 65.04 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000288/0.5878, allocations: 158.4 kB / 382 MB, free: 64.88 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002795/0.5881, allocations: 222.8 kB / 382.2 MB, free: 64.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.785e-06/0.5881, allocations: 3.984 kB / 382.2 MB, free: 64.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009741/0.5891, allocations: 0.5509 MB / 382.7 MB, free: 64.05 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.938e-05/0.5892, allocations: 134.7 kB / 382.9 MB, free: 63.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.189e-06/0.5892, allocations: 0 / 382.9 MB, free: 63.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.5892, allocations: 4 kB / 382.9 MB, free: 63.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.26e-05/0.5893, allocations: 8.047 kB / 382.9 MB, free: 63.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.068e-06/0.5894, allocations: 4 kB / 382.9 MB, free: 63.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003727/0.5897, allocations: 39.89 kB / 382.9 MB, free: 63.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001281/0.5899, allocations: 115.9 kB / 383 MB, free: 63.73 MB / 298.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.0002107/0.5901, allocations: 269.2 kB / 383.3 MB, free: 63.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001096/0.5902, allocations: 79.06 kB / 383.4 MB, free: 63.36 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000282/0.5905, allocations: 138.1 kB / 383.5 MB, free: 63.21 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-06/0.5906, allocations: 0 / 383.5 MB, free: 63.21 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.895e-06/0.5906, allocations: 0 / 383.5 MB, free: 63.21 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.402e-06/0.5906, allocations: 4 kB / 383.5 MB, free: 63.21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008036/0.5914, allocations: 0.6181 MB / 384.1 MB, free: 62.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.862e-06/0.5914, allocations: 4 kB / 384.1 MB, free: 62.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.939e-05/0.5915, allocations: 11.94 kB / 384.1 MB, free: 62.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.442e-06/0.5915, allocations: 4 kB / 384.2 MB, free: 62.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.17e-05/0.5916, allocations: 27.94 kB / 384.2 MB, free: 62.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.105e-06/0.5916, allocations: 0 / 384.2 MB, free: 62.5 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.154e-06/0.5916, allocations: 4 kB / 384.2 MB, free: 62.49 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.5927, allocations: 0.6763 MB / 384.9 MB, free: 61.78 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007402/0.5935, allocations: 0.4957 MB / 385.4 MB, free: 61.26 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001288/0.5936, allocations: 20 kB / 385.4 MB, free: 61.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003111/0.594, allocations: 35.88 kB / 385.4 MB, free: 61.21 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001734/0.5941, allocations: 51.92 kB / 385.5 MB, free: 61.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001282/0.5943, allocations: 120 kB / 385.6 MB, free: 61.04 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001084/0.5954, allocations: 0.7173 MB / 386.3 MB, free: 60.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.45e-07/0.5954, allocations: 7.875 kB / 386.3 MB, free: 60.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004584/0.5959, allocations: 88 kB / 386.4 MB, free: 60.23 MB / 298.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.0001803/0.5961, allocations: 142.5 kB / 386.5 MB, free: 60.08 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008589/0.5969, allocations: 0.642 MB / 387.2 MB, free: 59.39 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.933e-06/0.597, allocations: 4 kB / 387.2 MB, free: 59.39 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005584/0.5975, allocations: 0.5281 MB / 387.7 MB, free: 58.81 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007305/0.5983, allocations: 168.4 kB / 387.9 MB, free: 58.65 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002153/0.6004, allocations: 1.155 MB / 389 MB, free: 57.46 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000607/0.6011, allocations: 0.9877 MB / 390 MB, free: 56.45 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003256/0.6014, allocations: 91.23 kB / 390.1 MB, free: 56.36 MB / 298.7 MB Notification: Performance of SimCode: time 1.936e-06/0.6014, allocations: 0 / 390.1 MB, free: 56.36 MB / 298.7 MB Notification: Performance of Templates: time 0.007746/0.6092, allocations: 5.303 MB / 395.4 MB, free: 51.02 MB / 298.7 MB