Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadModel(Modelica): time 1.737/1.737, allocations: 171.2 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003567/0.0003572, allocations: 12 kB / 233.9 MB, free: 2.371 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08621/0.0866, allocations: 38.77 MB / 272.6 MB, free: 11.53 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3928/0.4795, allocations: 73.76 MB / 346.4 MB, free: 15.62 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002839/0.4799, allocations: 70.91 kB / 346.5 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1407/0.6206, allocations: 34.38 MB / 380.8 MB, free: 3.301 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.439e-06/0.6207, allocations: 0 / 380.8 MB, free: 3.301 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.417e-05/0.6207, allocations: 15.94 kB / 380.9 MB, free: 3.285 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.002634/0.6234, allocations: 0.987 MB / 381.8 MB, free: 2.266 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.365e-05/0.6235, allocations: 12.03 kB / 381.8 MB, free: 2.254 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003961/0.6239, allocations: 82.97 kB / 381.9 MB, free: 2.172 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001312/0.6252, allocations: 402.3 kB / 382.3 MB, free: 1.773 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.894e-05/0.6254, allocations: 17.44 kB / 382.3 MB, free: 1.762 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001352/0.6255, allocations: 19 kB / 382.4 MB, free: 1.746 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001591/0.6271, allocations: 298.6 kB / 382.7 MB, free: 1.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.693e-05/0.6272, allocations: 0 / 382.7 MB, free: 1.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001091/0.6273, allocations: 8 kB / 382.7 MB, free: 1.473 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/0.6273, allocations: 4 kB / 382.7 MB, free: 1.469 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001862/0.6292, allocations: 215.9 kB / 382.9 MB, free: 1.258 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003402/0.6327, allocations: 0.8863 MB / 383.8 MB, free: 324 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001282/0.634, allocations: 218.4 kB / 384 MB, free: 96 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.876e-05/0.6341, allocations: 4 kB / 384 MB, free: 92 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002001/0.6361, allocations: 386 kB / 384.4 MB, free: 15.68 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 5.621e-06/0.6362, allocations: 0 / 384.4 MB, free: 15.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.003844/0.6401, allocations: 0.9012 MB / 385.3 MB, free: 14.71 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001908/0.6403, allocations: 178.2 kB / 385.4 MB, free: 14.5 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003978/0.6443, allocations: 1 MB / 386.4 MB, free: 13.48 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002051/0.6446, allocations: 41.7 kB / 386.5 MB, free: 13.43 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002418/0.6449, allocations: 149.8 kB / 386.6 MB, free: 13.29 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000201/0.6451, allocations: 47.42 kB / 386.7 MB, free: 13.24 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.15e-05/0.6452, allocations: 8 kB / 386.7 MB, free: 13.23 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.00023/0.6454, allocations: 342.9 kB / 387 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008287/0.6463, allocations: 119.9 kB / 387.1 MB, free: 12.77 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000871/0.6472, allocations: 160.2 kB / 387.3 MB, free: 12.6 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008771/0.6481, allocations: 234.6 kB / 387.5 MB, free: 12.34 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.6481, allocations: 0 / 387.5 MB, free: 12.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.003429/0.6516, allocations: 0.578 MB / 388.1 MB, free: 11.73 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000219/0.6519, allocations: 134.8 kB / 388.2 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.6519, allocations: 0 / 388.2 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.526e-05/0.6519, allocations: 0 / 388.2 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001782/0.6521, allocations: 15.98 kB / 388.2 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.715e-05/0.6522, allocations: 4 kB / 388.2 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008689/0.6531, allocations: 43.88 kB / 388.3 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003298/0.6534, allocations: 111.9 kB / 388.4 MB, free: 11.41 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.001954/0.6554, allocations: 0.5375 MB / 388.9 MB, free: 10.83 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003321/0.6558, allocations: 83.06 kB / 389 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006741/0.6565, allocations: 126.4 kB / 389.1 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.668e-06/0.6565, allocations: 0 / 389.1 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.6566, allocations: 0 / 389.1 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.648e-05/0.6566, allocations: 3.984 kB / 389.1 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002191/0.6588, allocations: 0.618 MB / 389.8 MB, free: 9.949 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.58e-05/0.6589, allocations: 4.125 kB / 389.8 MB, free: 9.945 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001662/0.6591, allocations: 15.92 kB / 389.8 MB, free: 9.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.398e-05/0.6591, allocations: 4 kB / 389.8 MB, free: 9.926 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001864/0.6593, allocations: 23.98 kB / 389.8 MB, free: 9.902 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.502e-06/0.6594, allocations: 0 / 389.8 MB, free: 9.902 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.573e-06/0.6594, allocations: 8 kB / 389.8 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003079/0.6625, allocations: 0.7064 MB / 390.5 MB, free: 9.145 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002044/0.6646, allocations: 0.492 MB / 391 MB, free: 8.633 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003197/0.665, allocations: 27.94 kB / 391 MB, free: 8.605 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006997/0.6657, allocations: 31.81 kB / 391.1 MB, free: 8.574 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003805/0.6661, allocations: 55.94 kB / 391.1 MB, free: 8.52 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003042/0.6664, allocations: 115.9 kB / 391.2 MB, free: 8.406 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002924/0.6694, allocations: 0.7289 MB / 392 MB, free: 7.68 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.653e-06/0.6695, allocations: 0 / 392 MB, free: 7.68 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001071/0.6706, allocations: 88 kB / 392 MB, free: 7.594 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.0004072/0.671, allocations: 142.5 kB / 392.2 MB, free: 7.445 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002438/0.6735, allocations: 0.6536 MB / 392.8 MB, free: 6.742 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/0.6735, allocations: 0 / 392.8 MB, free: 6.742 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001602/0.6752, allocations: 0.5327 MB / 393.4 MB, free: 6.16 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001949/0.6772, allocations: 172.1 kB / 393.5 MB, free: 5.992 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005803/0.683, allocations: 1.492 MB / 395 MB, free: 4.469 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00159/0.6847, allocations: 0.9795 MB / 396 MB, free: 3.465 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0008949/0.6857, allocations: 169.4 kB / 396.2 MB, free: 3.301 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004128/0.6862, allocations: 71.3 kB / 396.2 MB, free: 3.23 MB / 314.7 MB Notification: Performance of SimCode: time 1.342e-06/0.6862, allocations: 0 / 396.2 MB, free: 3.23 MB / 314.7 MB Notification: Performance of Templates: time 0.02935/0.7156, allocations: 6.695 MB / 402.9 MB, free: 12.53 MB / 330.7 MB