Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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_cpp_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadModel(Modelica): time 1.798/1.798, allocations: 171.2 MB / 187.3 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005058/0.0005058, allocations: 8 kB / 233.8 MB, free: 3.082 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1033, allocations: 38.76 MB / 272.5 MB, free: 12.24 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4195/0.5229, allocations: 73.76 MB / 346.3 MB, free: 280 kB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002706/0.5232, allocations: 81.2 kB / 346.4 MB, free: 236 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.13/0.6533, allocations: 34.37 MB / 380.7 MB, free: 3.934 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.6534, allocations: 0 / 380.7 MB, free: 3.934 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.292e-05/0.6534, allocations: 11.94 kB / 380.8 MB, free: 3.922 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.00202/0.6555, allocations: 0.983 MB / 381.7 MB, free: 2.906 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/0.6555, allocations: 11.97 kB / 381.8 MB, free: 2.895 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002569/0.6558, allocations: 86.72 kB / 381.8 MB, free: 2.812 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009924/0.6568, allocations: 402.4 kB / 382.2 MB, free: 2.41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.143e-05/0.6569, allocations: 14.88 kB / 382.2 MB, free: 2.402 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001211/0.657, allocations: 19.44 kB / 382.3 MB, free: 2.387 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/0.6584, allocations: 302.6 kB / 382.6 MB, free: 2.129 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.6584, allocations: 0 / 382.6 MB, free: 2.129 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.261e-05/0.6585, allocations: 8 kB / 382.6 MB, free: 2.121 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.172e-05/0.6585, allocations: 4 kB / 382.6 MB, free: 2.117 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001104/0.6597, allocations: 211.9 kB / 382.8 MB, free: 1.91 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002833/0.6625, allocations: 0.8863 MB / 383.7 MB, free: 0.9688 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/0.6636, allocations: 218.4 kB / 383.9 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.21e-05/0.6637, allocations: 0 / 383.9 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001179/0.6649, allocations: 389.4 kB / 384.3 MB, free: 340 kB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 3.306e-06/0.6649, allocations: 0 / 384.3 MB, free: 340 kB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.003324/0.6683, allocations: 0.9076 MB / 385.2 MB, free: 15.36 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001596/0.6685, allocations: 178.2 kB / 385.3 MB, free: 15.14 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003032/0.6715, allocations: 0.9961 MB / 386.3 MB, free: 14.13 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001339/0.6717, allocations: 33.7 kB / 386.4 MB, free: 14.09 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002099/0.6719, allocations: 208.2 kB / 386.6 MB, free: 13.89 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001581/0.6721, allocations: 55.36 kB / 386.6 MB, free: 13.84 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.104e-05/0.6722, allocations: 4 kB / 386.6 MB, free: 13.83 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.6724, allocations: 327 kB / 387 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006776/0.6731, allocations: 116 kB / 387.1 MB, free: 13.39 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007284/0.6738, allocations: 164.2 kB / 387.2 MB, free: 13.21 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007245/0.6746, allocations: 235.1 kB / 387.5 MB, free: 12.96 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.6746, allocations: 0 / 387.5 MB, free: 12.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.002265/0.6769, allocations: 0.5587 MB / 388 MB, free: 12.37 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001911/0.6771, allocations: 139.9 kB / 388.2 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.886e-06/0.6771, allocations: 0 / 388.2 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.064e-05/0.6771, allocations: 0 / 388.2 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001737/0.6773, allocations: 19.92 kB / 388.2 MB, free: 12.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.391e-05/0.6774, allocations: 4 kB / 388.2 MB, free: 12.19 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007103/0.6781, allocations: 36.08 kB / 388.2 MB, free: 12.15 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002779/0.6784, allocations: 119.9 kB / 388.3 MB, free: 12.04 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.00149/0.6799, allocations: 0.5375 MB / 388.9 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002452/0.6802, allocations: 79.06 kB / 388.9 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000473/0.6806, allocations: 130.4 kB / 389.1 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.463e-06/0.6807, allocations: 8 kB / 389.1 MB, free: 11.24 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/0.6807, allocations: 0 / 389.1 MB, free: 11.24 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.6807, allocations: 3.938 kB / 389.1 MB, free: 11.24 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001603/0.6823, allocations: 0.6219 MB / 389.7 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.6824, allocations: 0 / 389.7 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001136/0.6825, allocations: 8 kB / 389.7 MB, free: 10.56 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.622e-06/0.6825, allocations: 0 / 389.7 MB, free: 10.56 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001138/0.6826, allocations: 27.98 kB / 389.7 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.683e-06/0.6827, allocations: 3.984 kB / 389.7 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.6827, allocations: 4 kB / 389.7 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002555/0.6852, allocations: 0.7062 MB / 390.5 MB, free: 9.773 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001581/0.6869, allocations: 499.7 kB / 390.9 MB, free: 9.266 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002633/0.6871, allocations: 23.98 kB / 391 MB, free: 9.242 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005744/0.6877, allocations: 23.98 kB / 391 MB, free: 9.219 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003182/0.6881, allocations: 55.92 kB / 391 MB, free: 9.164 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002807/0.6884, allocations: 119.9 kB / 391.2 MB, free: 9.047 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002333/0.6907, allocations: 0.725 MB / 391.9 MB, free: 8.324 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.11e-07/0.6907, allocations: 4.188 kB / 391.9 MB, free: 8.32 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009391/0.6917, allocations: 84 kB / 392 MB, free: 8.238 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.0003228/0.692, allocations: 142.5 kB / 392.1 MB, free: 8.09 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002118/0.6942, allocations: 0.6613 MB / 392.8 MB, free: 7.379 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.6942, allocations: 0 / 392.8 MB, free: 7.379 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001269/0.6955, allocations: 0.5288 MB / 393.3 MB, free: 6.801 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001608/0.6971, allocations: 171.3 kB / 393.5 MB, free: 6.633 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005027/0.7022, allocations: 1.576 MB / 395 MB, free: 5.02 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001324/0.7035, allocations: 0.9834 MB / 396 MB, free: 4.012 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005639/0.7041, allocations: 91.25 kB / 396.1 MB, free: 3.922 MB / 314.7 MB Notification: Performance of SimCode: time 1.603e-06/0.7041, allocations: 0 / 396.1 MB, free: 3.922 MB / 314.7 MB Notification: Performance of Templates: time 0.01434/0.7185, allocations: 5.314 MB / 401.4 MB, free: 14.57 MB / 330.7 MB