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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.537/1.537, allocations: 171.1 MB / 186.7 MB, free: 1.141 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003457/0.0003458, allocations: 8 kB / 233.3 MB, free: 2.945 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09525/0.09563, allocations: 38.78 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3584/0.454, allocations: 73.76 MB / 345.9 MB, free: 0 / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002851/0.4544, allocations: 74.22 kB / 345.9 MB, free: 15.96 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1344/0.5888, allocations: 34.37 MB / 380.3 MB, free: 3.672 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.5889, allocations: 3.938 kB / 380.3 MB, free: 3.668 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.217e-05/0.5889, allocations: 12 kB / 380.3 MB, free: 3.656 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.001566/0.5905, allocations: 0.9907 MB / 381.3 MB, free: 2.637 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.5906, allocations: 8.031 kB / 381.3 MB, free: 2.629 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001236/0.5907, allocations: 56.42 kB / 381.4 MB, free: 2.574 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001955/0.5909, allocations: 82.97 kB / 381.5 MB, free: 2.492 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000798/0.5917, allocations: 414.8 kB / 381.9 MB, free: 2.074 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.844e-05/0.5918, allocations: 18.62 kB / 381.9 MB, free: 2.062 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.98e-05/0.5919, allocations: 15.94 kB / 381.9 MB, free: 2.051 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009253/0.5928, allocations: 294.5 kB / 382.2 MB, free: 1.828 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.5929, allocations: 0 / 382.2 MB, free: 1.828 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.17e-05/0.5929, allocations: 7.312 kB / 382.2 MB, free: 1.824 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.474e-05/0.593, allocations: 7.984 kB / 382.2 MB, free: 1.816 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00076/0.5937, allocations: 215.2 kB / 382.4 MB, free: 1.668 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001936/0.5957, allocations: 0.8747 MB / 383.3 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000719/0.5964, allocations: 218.5 kB / 383.5 MB, free: 0.5156 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.711e-05/0.5965, allocations: 8.031 kB / 383.5 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007975/0.5973, allocations: 381.9 kB / 383.9 MB, free: 100 kB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 2.885e-06/0.5973, allocations: 0 / 383.9 MB, free: 100 kB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.002295/0.5996, allocations: 0.8894 MB / 384.8 MB, free: 15.14 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000128/0.5997, allocations: 174.2 kB / 384.9 MB, free: 14.93 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001867/0.6016, allocations: 0.886 MB / 385.8 MB, free: 14.04 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.842e-05/0.6017, allocations: 33.7 kB / 385.9 MB, free: 14 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001479/0.6019, allocations: 208.2 kB / 386.1 MB, free: 13.8 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001165/0.602, allocations: 51.36 kB / 386.1 MB, free: 13.75 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.015e-05/0.6021, allocations: 8 kB / 386.1 MB, free: 13.74 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.6022, allocations: 327 kB / 386.4 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004469/0.6027, allocations: 116 kB / 386.6 MB, free: 13.3 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004919/0.6032, allocations: 168.2 kB / 386.7 MB, free: 13.12 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004914/0.6037, allocations: 227.1 kB / 386.9 MB, free: 12.87 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.6037, allocations: 0 / 386.9 MB, free: 12.87 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001517/0.6052, allocations: 0.547 MB / 387.5 MB, free: 12.29 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001338/0.6054, allocations: 134.8 kB / 387.6 MB, free: 12.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.6054, allocations: 0 / 387.6 MB, free: 12.14 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.6054, allocations: 4 kB / 387.6 MB, free: 12.13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.6056, allocations: 16.05 kB / 387.6 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.231e-05/0.6056, allocations: 4 kB / 387.6 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004822/0.6061, allocations: 43.75 kB / 387.7 MB, free: 12.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001904/0.6063, allocations: 111.9 kB / 387.8 MB, free: 11.96 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.0009693/0.6073, allocations: 0.5415 MB / 388.3 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00016/0.6074, allocations: 79.06 kB / 388.4 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000314/0.6078, allocations: 130.4 kB / 388.5 MB, free: 11.17 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.6078, allocations: 0 / 388.5 MB, free: 11.17 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/0.6078, allocations: 0 / 388.5 MB, free: 11.17 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.555e-06/0.6078, allocations: 8.016 kB / 388.5 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001072/0.6089, allocations: 0.618 MB / 389.2 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.6089, allocations: 0 / 389.2 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.067e-05/0.609, allocations: 15.98 kB / 389.2 MB, free: 10.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.511e-06/0.609, allocations: 0 / 389.2 MB, free: 10.48 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.333e-05/0.6091, allocations: 27.98 kB / 389.2 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.6091, allocations: 4 kB / 389.2 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.6092, allocations: 128 / 389.2 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00184/0.611, allocations: 0.6944 MB / 389.9 MB, free: 9.711 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001182/0.6122, allocations: 0.4958 MB / 390.4 MB, free: 9.195 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00018/0.6124, allocations: 20 kB / 390.4 MB, free: 9.176 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004078/0.6128, allocations: 31.88 kB / 390.5 MB, free: 9.145 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002443/0.6131, allocations: 55.94 kB / 390.5 MB, free: 9.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001942/0.6133, allocations: 115.9 kB / 390.6 MB, free: 8.977 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001657/0.615, allocations: 0.7328 MB / 391.4 MB, free: 8.25 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.62e-07/0.615, allocations: 0 / 391.4 MB, free: 8.25 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005802/0.6156, allocations: 84 kB / 391.4 MB, free: 8.168 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.00226/0.6179, allocations: 1.273 MB / 392.7 MB, free: 6.836 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001477/0.6194, allocations: 0.6498 MB / 393.4 MB, free: 6.137 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.6194, allocations: 4 kB / 393.4 MB, free: 6.133 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009077/0.6203, allocations: 0.525 MB / 393.9 MB, free: 5.559 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001193/0.6215, allocations: 168.3 kB / 394.1 MB, free: 5.395 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007639/0.6292, allocations: 3.55 MB / 397.6 MB, free: 1.766 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009762/0.6302, allocations: 0.9795 MB / 398.6 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005087/0.6307, allocations: 147.2 kB / 398.7 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of SimCode: time 1.103e-06/0.6308, allocations: 0 / 398.7 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.503/3.134, allocations: 6.471 MB / 405.2 MB, free: 10.1 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat does not exist to compare? outputFormat=mat