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.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_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.678/1.678, allocations: 171.2 MB / 186.1 MB, free: 1.031 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003441/0.0003441, allocations: 8 kB / 233.4 MB, free: 2.266 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07802/0.0784, allocations: 38.77 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3755/0.4539, allocations: 73.06 MB / 345.2 MB, free: 88 kB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003268/0.4543, allocations: 69.78 kB / 345.3 MB, free: 52 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.181/0.6354, allocations: 42.55 MB / 387.8 MB, free: 11.84 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.6354, allocations: 0 / 387.8 MB, free: 11.84 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.585e-05/0.6355, allocations: 15.94 kB / 387.8 MB, free: 11.82 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.001599/0.6371, allocations: 0.7366 MB / 388.6 MB, free: 11.03 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.6372, allocations: 12.03 kB / 388.6 MB, free: 11.02 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001952/0.6374, allocations: 70.53 kB / 388.6 MB, free: 10.94 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001723/0.6376, allocations: 43.53 kB / 388.7 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008069/0.6384, allocations: 343.1 kB / 389 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.678e-05/0.6385, allocations: 28.66 kB / 389 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001428/0.6386, allocations: 32 kB / 389.1 MB, free: 10.45 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00158/0.6402, allocations: 493.7 kB / 389.6 MB, free: 9.965 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.6403, allocations: 0 / 389.6 MB, free: 9.965 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001002/0.6404, allocations: 12 kB / 389.6 MB, free: 9.953 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.678e-05/0.6404, allocations: 8 kB / 389.6 MB, free: 9.945 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001448/0.6419, allocations: 390.3 kB / 390 MB, free: 9.566 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002949/0.6449, allocations: 1.058 MB / 391 MB, free: 8.457 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00185/0.6468, allocations: 462.6 kB / 391.5 MB, free: 7.996 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001217/0.6469, allocations: 4 kB / 391.5 MB, free: 7.992 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009361/0.6479, allocations: 341.1 kB / 391.8 MB, free: 7.645 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 5.621e-06/0.6479, allocations: 3.984 kB / 391.8 MB, free: 7.641 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002437/0.6503, allocations: 0.713 MB / 392.5 MB, free: 6.91 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.6505, allocations: 114.7 kB / 392.6 MB, free: 6.773 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005103/0.651, allocations: 277.5 kB / 392.9 MB, free: 6.5 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000116/0.6511, allocations: 41.64 kB / 392.9 MB, free: 6.453 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001814/0.6513, allocations: 168.7 kB / 393.1 MB, free: 6.285 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001713/0.6515, allocations: 79.14 kB / 393.2 MB, free: 6.207 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.074e-05/0.6516, allocations: 8 kB / 393.2 MB, free: 6.199 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.6518, allocations: 342.8 kB / 393.5 MB, free: 5.855 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006644/0.6525, allocations: 180.6 kB / 393.7 MB, free: 5.676 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007147/0.6532, allocations: 225.4 kB / 393.9 MB, free: 5.441 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007392/0.654, allocations: 251.3 kB / 394.2 MB, free: 5.184 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/0.654, allocations: 0 / 394.2 MB, free: 5.184 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001973/0.656, allocations: 0.6319 MB / 394.8 MB, free: 4.535 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.115e-05/0.6561, allocations: 64.5 kB / 394.9 MB, free: 4.461 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.6561, allocations: 3.984 kB / 394.9 MB, free: 4.457 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.22e-05/0.6562, allocations: 4 kB / 394.9 MB, free: 4.453 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002216/0.6564, allocations: 51.91 kB / 394.9 MB, free: 4.402 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.352e-05/0.6564, allocations: 4 kB / 394.9 MB, free: 4.398 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005767/0.657, allocations: 51.81 kB / 395 MB, free: 4.348 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004364/0.6574, allocations: 279.7 kB / 395.3 MB, free: 4.074 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.0006187/0.6581, allocations: 281.1 kB / 395.5 MB, free: 3.777 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001484/0.6582, allocations: 35.61 kB / 395.6 MB, free: 3.742 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001144/0.6584, allocations: 42.95 kB / 395.6 MB, free: 3.699 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.6584, allocations: 0 / 395.6 MB, free: 3.699 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.6584, allocations: 4 kB / 395.6 MB, free: 3.695 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.6584, allocations: 8 kB / 395.6 MB, free: 3.688 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000936/0.6594, allocations: 457.3 kB / 396.1 MB, free: 3.191 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.6594, allocations: 0 / 396.1 MB, free: 3.191 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001553/0.6596, allocations: 47.91 kB / 396.1 MB, free: 3.145 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.023e-06/0.6596, allocations: 4 kB / 396.1 MB, free: 3.141 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001166/0.6597, allocations: 43.97 kB / 396.2 MB, free: 3.098 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.538e-06/0.6597, allocations: 4 kB / 396.2 MB, free: 3.094 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.6597, allocations: 0 / 396.2 MB, free: 3.094 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001825/0.6616, allocations: 0.602 MB / 396.8 MB, free: 2.465 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000473/0.6621, allocations: 188.7 kB / 396.9 MB, free: 2.262 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001636/0.6622, allocations: 12 kB / 397 MB, free: 2.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004226/0.6627, allocations: 39.91 kB / 397 MB, free: 2.211 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003175/0.663, allocations: 91.91 kB / 397.1 MB, free: 2.121 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004151/0.6634, allocations: 283.6 kB / 397.4 MB, free: 1.844 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003485/0.6638, allocations: 198 kB / 397.6 MB, free: 1.648 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6638, allocations: 0 / 397.6 MB, free: 1.648 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000695/0.6645, allocations: 88 kB / 397.6 MB, free: 1.562 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.002372/0.6669, allocations: 1.172 MB / 398.8 MB, free: 356 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001729/0.6687, allocations: 0.5491 MB / 399.4 MB, free: 15.77 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.6688, allocations: 0 / 399.4 MB, free: 15.77 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009556/0.6697, allocations: 355.2 kB / 399.7 MB, free: 15.4 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002065/0.6718, allocations: 267.8 kB / 400 MB, free: 15.14 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006374/0.6782, allocations: 2.625 MB / 402.6 MB, free: 12.45 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005777/0.6789, allocations: 0.8113 MB / 403.4 MB, free: 11.61 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.002174/0.6811, allocations: 0.7471 MB / 404.2 MB, free: 10.86 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00133/0.6824, allocations: 322.8 kB / 404.5 MB, free: 10.54 MB / 330.7 MB Notification: Performance of SimCode: time 1.653e-06/0.6825, allocations: 0 / 404.5 MB, free: 10.54 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04857/0.731, allocations: 12.65 MB / 417.1 MB, free: 13.72 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002177/0.7313, allocations: 178.8 kB / 417.3 MB, free: 13.48 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.777/3.509, allocations: 0 / 417.3 MB, free: 13.48 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat does not exist to compare? outputFormat=mat