Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.883/1.883, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003486/0.0003487, allocations: 12 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1033, allocations: 44.51 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.48/0.5834, allocations: 78.35 MB / 386.9 MB, free: 14.53 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002989/0.5838, allocations: 74.36 kB / 387 MB, free: 14.53 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1303/0.7142, allocations: 42.52 MB / 429.5 MB, free: 4.441 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.7142, allocations: 0 / 429.5 MB, free: 4.441 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.881e-05/0.7143, allocations: 7.75 kB / 429.5 MB, free: 4.441 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.001354/0.7156, allocations: 0.736 MB / 430.2 MB, free: 3.789 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.7157, allocations: 11.81 kB / 430.2 MB, free: 3.785 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001623/0.7159, allocations: 77.09 kB / 430.3 MB, free: 3.734 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001586/0.716, allocations: 46.69 kB / 430.4 MB, free: 3.711 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006097/0.7167, allocations: 345.7 kB / 430.7 MB, free: 3.457 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.223e-05/0.7167, allocations: 26.69 kB / 430.7 MB, free: 3.457 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001247/0.7169, allocations: 30.88 kB / 430.7 MB, free: 3.457 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/0.7182, allocations: 490.3 kB / 431.2 MB, free: 3.289 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.969e-05/0.7182, allocations: 3.906 kB / 431.2 MB, free: 3.289 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.43e-05/0.7183, allocations: 15.34 kB / 431.2 MB, free: 3.289 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.7184, allocations: 7.75 kB / 431.3 MB, free: 3.289 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001195/0.7196, allocations: 386.6 kB / 431.6 MB, free: 3.227 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002487/0.7221, allocations: 1.063 MB / 432.7 MB, free: 2.723 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001785/0.7239, allocations: 467.5 kB / 433.2 MB, free: 2.613 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001084/0.7241, allocations: 7.922 kB / 433.2 MB, free: 2.609 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008351/0.7249, allocations: 339.3 kB / 433.5 MB, free: 2.457 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 5.24e-06/0.7249, allocations: 0 / 433.5 MB, free: 2.457 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002147/0.7271, allocations: 0.7162 MB / 434.2 MB, free: 2.25 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.443e-05/0.7272, allocations: 118 kB / 434.3 MB, free: 2.117 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004738/0.7277, allocations: 271.7 kB / 434.6 MB, free: 1.98 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001024/0.7278, allocations: 44.25 kB / 434.6 MB, free: 1.945 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.7279, allocations: 229.9 kB / 434.9 MB, free: 1.754 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000143/0.7281, allocations: 65.48 kB / 434.9 MB, free: 1.715 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.988e-05/0.7282, allocations: 11.34 kB / 434.9 MB, free: 1.715 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.624e-05/0.7283, allocations: 331.3 kB / 435.3 MB, free: 1.391 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000587/0.7289, allocations: 176.3 kB / 435.4 MB, free: 1.359 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005989/0.7295, allocations: 231 kB / 435.7 MB, free: 1.285 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006552/0.7302, allocations: 249 kB / 435.9 MB, free: 1.18 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.7302, allocations: 4 kB / 435.9 MB, free: 1.176 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001721/0.7319, allocations: 0.6122 MB / 436.5 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.189e-05/0.732, allocations: 61.09 kB / 436.6 MB, free: 0.582 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.732, allocations: 4.031 kB / 436.6 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.437e-05/0.7321, allocations: 4 kB / 436.6 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001971/0.7323, allocations: 59.66 kB / 436.6 MB, free: 0.5195 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.241e-05/0.7323, allocations: 4 kB / 436.6 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005429/0.7329, allocations: 52.12 kB / 436.7 MB, free: 480 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003085/0.7332, allocations: 283.4 kB / 437 MB, free: 200 kB / 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.000633/0.7338, allocations: 289.4 kB / 437.2 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001535/0.734, allocations: 31.62 kB / 437.3 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001077/0.7341, allocations: 38.95 kB / 437.3 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.7341, allocations: 0 / 437.3 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/0.7342, allocations: 4 kB / 437.3 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.7342, allocations: 0 / 437.3 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009909/0.7352, allocations: 464.5 kB / 437.8 MB, free: 15.33 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.7352, allocations: 4 kB / 437.8 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001734/0.7354, allocations: 51.91 kB / 437.8 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.554e-06/0.7354, allocations: 0 / 437.8 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001236/0.7355, allocations: 43.97 kB / 437.9 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.13e-06/0.7356, allocations: 4 kB / 437.9 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.7356, allocations: 0 / 437.9 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001844/0.7374, allocations: 0.5947 MB / 438.5 MB, free: 14.6 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004621/0.7379, allocations: 184.8 kB / 438.7 MB, free: 14.4 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001715/0.7381, allocations: 15.98 kB / 438.7 MB, free: 14.39 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004335/0.7386, allocations: 47.81 kB / 438.7 MB, free: 14.34 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003569/0.7389, allocations: 83.92 kB / 438.8 MB, free: 14.26 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004768/0.7394, allocations: 275.7 kB / 439.1 MB, free: 13.98 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004234/0.7399, allocations: 205.9 kB / 439.3 MB, free: 13.79 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.7399, allocations: 0 / 439.3 MB, free: 13.79 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008329/0.7407, allocations: 84 kB / 439.3 MB, free: 13.7 MB / 330.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.002594/0.7433, allocations: 1.168 MB / 440.5 MB, free: 12.5 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001737/0.7451, allocations: 0.5512 MB / 441.1 MB, free: 11.93 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.7452, allocations: 0 / 441.1 MB, free: 11.93 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008709/0.7461, allocations: 342.6 kB / 441.4 MB, free: 11.57 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001994/0.7481, allocations: 289.3 kB / 441.7 MB, free: 11.29 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006278/0.7544, allocations: 2.676 MB / 444.4 MB, free: 8.535 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006027/0.755, allocations: 0.8113 MB / 445.2 MB, free: 7.695 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001957/0.757, allocations: 422.5 kB / 445.6 MB, free: 7.281 MB / 330.7 MB Notification: Performance of SimCode: time 1.313e-06/0.757, allocations: 0 / 445.6 MB, free: 7.281 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.752/3.509, allocations: 9.535 MB / 455.1 MB, free: 13.39 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat does not exist to compare? outputFormat=mat