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.FlipFlop.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.FlipFlop,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.579/1.579, allocations: 171.2 MB / 186.8 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003536/0.0003537, allocations: 8 kB / 233.3 MB, free: 2.945 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07947/0.07985, allocations: 38.78 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4085/0.4883, allocations: 73.06 MB / 345.2 MB, free: 464 kB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002488/0.4886, allocations: 71.53 kB / 345.2 MB, free: 428 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1473/0.6359, allocations: 42.55 MB / 387.8 MB, free: 12.37 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.05e-06/0.636, allocations: 0 / 387.8 MB, free: 12.37 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.833e-05/0.636, allocations: 11.94 kB / 387.8 MB, free: 12.36 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001555/0.6376, allocations: 0.7327 MB / 388.5 MB, free: 11.56 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/0.6377, allocations: 12.03 kB / 388.5 MB, free: 11.55 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001665/0.6378, allocations: 70.53 kB / 388.6 MB, free: 11.47 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001744/0.638, allocations: 43.53 kB / 388.7 MB, free: 11.43 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007576/0.6388, allocations: 347.1 kB / 389 MB, free: 11.05 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.064e-05/0.6389, allocations: 28.66 kB / 389 MB, free: 11.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001475/0.639, allocations: 39.86 kB / 389.1 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001436/0.6405, allocations: 489.8 kB / 389.5 MB, free: 10.49 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.6405, allocations: 0 / 389.5 MB, free: 10.49 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000102/0.6406, allocations: 16 kB / 389.6 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.6407, allocations: 8 kB / 389.6 MB, free: 10.47 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001312/0.642, allocations: 390.3 kB / 389.9 MB, free: 10.09 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002732/0.6447, allocations: 1.062 MB / 391 MB, free: 8.977 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001826/0.6466, allocations: 454.6 kB / 391.4 MB, free: 8.523 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001077/0.6467, allocations: 4 kB / 391.5 MB, free: 8.52 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009219/0.6477, allocations: 345.1 kB / 391.8 MB, free: 8.168 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 3.607e-06/0.6477, allocations: 0 / 391.8 MB, free: 8.168 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002476/0.6502, allocations: 0.7168 MB / 392.5 MB, free: 7.434 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.235e-05/0.6503, allocations: 106.8 kB / 392.6 MB, free: 7.305 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005393/0.6508, allocations: 277.6 kB / 392.9 MB, free: 7.031 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001021/0.6509, allocations: 37.7 kB / 392.9 MB, free: 6.988 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001935/0.6511, allocations: 227.2 kB / 393.1 MB, free: 6.766 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001704/0.6513, allocations: 75.16 kB / 393.2 MB, free: 6.691 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.847e-05/0.6514, allocations: 12 kB / 393.2 MB, free: 6.68 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.6516, allocations: 334.8 kB / 393.6 MB, free: 6.344 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006393/0.6522, allocations: 176.6 kB / 393.7 MB, free: 6.168 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000686/0.653, allocations: 229.4 kB / 393.9 MB, free: 5.93 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007368/0.6537, allocations: 250.2 kB / 394.2 MB, free: 5.676 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.6537, allocations: 0 / 394.2 MB, free: 5.676 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001924/0.6557, allocations: 0.6215 MB / 394.8 MB, free: 5.035 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.08e-05/0.6558, allocations: 65.42 kB / 394.9 MB, free: 4.961 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.6558, allocations: 0 / 394.9 MB, free: 4.961 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.751e-05/0.6558, allocations: 4 kB / 394.9 MB, free: 4.957 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002145/0.6561, allocations: 55.91 kB / 394.9 MB, free: 4.902 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/0.6561, allocations: 4 kB / 394.9 MB, free: 4.898 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005554/0.6566, allocations: 59.83 kB / 395 MB, free: 4.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004143/0.6571, allocations: 275.7 kB / 395.3 MB, free: 4.57 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: 45 ($whenCondition1,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,$PRE.FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And2.y,$PRE.FF.And2.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,$PRE.FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.And4.y,$PRE.FF.And4.auxiliary_n,FF.RS2.Nor1.auxiliary[2],$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.And1.y,$PRE.FF.And1.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.auxiliary_n,FF.And4.auxiliary_n,$PRE.FF.Not1.auxiliary,FF.RS1.Nor1.auxiliary[2],$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.y,$PRE.FF.And3.auxiliary_n,FF.Not1.auxiliary,CLK.y,$PRE.CLK.t_i,CLK.t_i,J.y,K.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 2 * 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.0005813/0.6577, allocations: 281.1 kB / 395.5 MB, free: 4.273 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001378/0.6578, allocations: 31.7 kB / 395.6 MB, free: 4.242 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.11e-05/0.6579, allocations: 30.97 kB / 395.6 MB, free: 4.211 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.467e-06/0.6579, allocations: 8 kB / 395.6 MB, free: 4.203 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/0.658, allocations: 3.984 kB / 395.6 MB, free: 4.199 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.658, allocations: 0 / 395.6 MB, free: 4.199 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009235/0.6589, allocations: 465.2 kB / 396.1 MB, free: 3.695 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.696e-06/0.6589, allocations: 8 kB / 396.1 MB, free: 3.688 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001442/0.6591, allocations: 47.91 kB / 396.1 MB, free: 3.641 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.845e-06/0.6591, allocations: 7.938 kB / 396.1 MB, free: 3.633 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001191/0.6592, allocations: 43.97 kB / 396.2 MB, free: 3.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.985e-06/0.6593, allocations: 4 kB / 396.2 MB, free: 3.586 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.6593, allocations: 0 / 396.2 MB, free: 3.586 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001795/0.6611, allocations: 0.5869 MB / 396.8 MB, free: 2.969 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004077/0.6615, allocations: 188.7 kB / 397 MB, free: 2.766 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001659/0.6617, allocations: 19.94 kB / 397 MB, free: 2.746 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004217/0.6621, allocations: 47.86 kB / 397 MB, free: 2.699 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003303/0.6625, allocations: 83.86 kB / 397.1 MB, free: 2.617 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004453/0.6629, allocations: 279.7 kB / 397.4 MB, free: 2.344 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003252/0.6633, allocations: 201.9 kB / 397.6 MB, free: 2.145 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.6633, allocations: 0 / 397.6 MB, free: 2.145 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006261/0.6639, allocations: 88 kB / 397.7 MB, free: 2.059 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: 33 ($whenCondition1,FF.RS1.Nor1.auxiliary[2],FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.RS2.Nor1.auxiliary[2],FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.y,FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.y,FF.And4.auxiliary_n,FF.Not1.auxiliary,CLK.y,CLK.t_i,J.y,K.y) * Number of discrete states: 13 (K.y,J.y,FF.Not1.auxiliary,FF.And4.auxiliary_n,FF.And3.auxiliary_n,FF.And2.auxiliary_n,FF.And1.auxiliary_n,FF.RS2.TD1.x,FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor1.auxiliary_n,FF.RS1.TD1.x,FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor1.auxiliary_n) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 1 * 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.002297/0.6662, allocations: 1.172 MB / 398.8 MB, free: 0.8438 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001624/0.6679, allocations: 0.5375 MB / 399.4 MB, free: 288 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.6679, allocations: 4 kB / 399.4 MB, free: 284 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008313/0.6687, allocations: 347.2 kB / 399.7 MB, free: 15.91 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00188/0.6706, allocations: 275.5 kB / 400 MB, free: 15.65 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005662/0.6763, allocations: 2.673 MB / 402.7 MB, free: 12.9 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005297/0.6769, allocations: 0.8113 MB / 403.5 MB, free: 12.06 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001831/0.6787, allocations: 430.5 kB / 403.9 MB, free: 11.64 MB / 330.7 MB Notification: Performance of SimCode: time 1.483e-06/0.6787, allocations: 0 / 403.9 MB, free: 11.64 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.656/3.335, allocations: 9.542 MB / 413.4 MB, free: 1.738 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat does not exist to compare? outputFormat=mat