Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.185/2.185, allocations: 194.9 MB / 211.1 MB, free: 7.586 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003568/0.0003568, allocations: 8 kB / 264.1 MB, free: 2.508 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3134/0.3138, allocations: 44.5 MB / 308.6 MB, free: 12.67 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1681/0.4819, allocations: 78.36 MB / 386.9 MB, free: 14.2 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/0.4823, allocations: 71.97 kB / 387 MB, free: 14.13 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4102/0.8925, allocations: 42.52 MB / 429.5 MB, free: 93.07 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.8926, allocations: 0 / 429.5 MB, free: 93.07 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.738e-05/0.8926, allocations: 9.156 kB / 429.5 MB, free: 93.07 MB / 346.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.001388/0.894, allocations: 0.7269 MB / 430.3 MB, free: 92.48 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.8941, allocations: 9.062 kB / 430.3 MB, free: 92.48 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001677/0.8943, allocations: 73.03 kB / 430.3 MB, free: 92.41 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001591/0.8944, allocations: 52 kB / 430.4 MB, free: 92.38 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006653/0.8951, allocations: 348.9 kB / 430.7 MB, free: 92.1 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.998e-05/0.8952, allocations: 22.5 kB / 430.7 MB, free: 92.09 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001356/0.8953, allocations: 33.5 kB / 430.8 MB, free: 92.08 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001312/0.8966, allocations: 489.6 kB / 431.3 MB, free: 91.82 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.8967, allocations: 0 / 431.3 MB, free: 91.82 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001134/0.8968, allocations: 19.09 kB / 431.3 MB, free: 91.81 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.8968, allocations: 11.89 kB / 431.3 MB, free: 91.8 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001185/0.898, allocations: 388.8 kB / 431.7 MB, free: 91.65 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002554/0.9006, allocations: 1.064 MB / 432.7 MB, free: 90.89 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001809/0.9025, allocations: 463 kB / 433.2 MB, free: 90.44 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001202/0.9026, allocations: 4 kB / 433.2 MB, free: 90.43 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008091/0.9035, allocations: 333.3 kB / 433.5 MB, free: 90.09 MB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 3.557e-06/0.9035, allocations: 0 / 433.5 MB, free: 90.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.002109/0.9056, allocations: 0.7243 MB / 434.2 MB, free: 89.36 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.534e-05/0.9057, allocations: 114.8 kB / 434.3 MB, free: 89.22 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004022/0.9061, allocations: 269.7 kB / 434.6 MB, free: 88.95 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.244e-05/0.9062, allocations: 41.64 kB / 434.7 MB, free: 88.9 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.9063, allocations: 168.5 kB / 434.8 MB, free: 88.74 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001308/0.9065, allocations: 79.38 kB / 434.9 MB, free: 88.68 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.758e-05/0.9065, allocations: 16 kB / 434.9 MB, free: 88.66 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.005e-05/0.9066, allocations: 338.8 kB / 435.2 MB, free: 88.32 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005519/0.9072, allocations: 176.6 kB / 435.4 MB, free: 88.14 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005792/0.9078, allocations: 225.4 kB / 435.6 MB, free: 87.91 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006116/0.9084, allocations: 243.3 kB / 435.9 MB, free: 87.66 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.9084, allocations: 0 / 435.9 MB, free: 87.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001626/0.9101, allocations: 0.634 MB / 436.5 MB, free: 87.02 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.014e-05/0.9101, allocations: 65.89 kB / 436.6 MB, free: 86.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.878e-06/0.9102, allocations: 4 kB / 436.6 MB, free: 86.94 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/0.9102, allocations: 3.938 kB / 436.6 MB, free: 86.94 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000194/0.9104, allocations: 55.81 kB / 436.6 MB, free: 86.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.9104, allocations: 7.938 kB / 436.6 MB, free: 86.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005287/0.911, allocations: 59.64 kB / 436.7 MB, free: 86.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003083/0.9113, allocations: 287.2 kB / 437 MB, free: 86.55 MB / 346.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.0004961/0.9118, allocations: 281 kB / 437.3 MB, free: 86.25 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.9119, allocations: 27.62 kB / 437.3 MB, free: 86.23 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.797e-05/0.912, allocations: 38.95 kB / 437.3 MB, free: 86.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.912, allocations: 8 kB / 437.3 MB, free: 86.18 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.912, allocations: 0 / 437.3 MB, free: 86.18 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.9121, allocations: 3.984 kB / 437.3 MB, free: 86.17 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007256/0.9128, allocations: 459.8 kB / 437.8 MB, free: 85.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.9128, allocations: 0 / 437.8 MB, free: 85.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001307/0.913, allocations: 47.83 kB / 437.8 MB, free: 85.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.913, allocations: 3.984 kB / 437.8 MB, free: 85.63 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.74e-05/0.9131, allocations: 47.23 kB / 437.9 MB, free: 85.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.9131, allocations: 0 / 437.9 MB, free: 85.59 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.9131, allocations: 0 / 437.9 MB, free: 85.59 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001485/0.9146, allocations: 0.5946 MB / 438.5 MB, free: 84.97 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003946/0.915, allocations: 188.7 kB / 438.7 MB, free: 84.77 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001535/0.9152, allocations: 12 kB / 438.7 MB, free: 84.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003975/0.9156, allocations: 43.88 kB / 438.7 MB, free: 84.71 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002727/0.9159, allocations: 87.91 kB / 438.8 MB, free: 84.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002902/0.9162, allocations: 275.7 kB / 439.1 MB, free: 84.36 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002462/0.9164, allocations: 201.9 kB / 439.3 MB, free: 84.16 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.262e-06/0.9164, allocations: 0 / 439.3 MB, free: 84.16 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005731/0.917, allocations: 83.84 kB / 439.3 MB, free: 84.08 MB / 346.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.001837/0.9189, allocations: 1.182 MB / 440.5 MB, free: 82.86 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001401/0.9203, allocations: 0.5365 MB / 441.1 MB, free: 82.31 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.9203, allocations: 0 / 441.1 MB, free: 82.31 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007485/0.9211, allocations: 353.8 kB / 441.4 MB, free: 81.95 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001928/0.9231, allocations: 289.1 kB / 441.7 MB, free: 81.67 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004819/0.9279, allocations: 2.611 MB / 444.3 MB, free: 79 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003258/0.9283, allocations: 0.8113 MB / 445.1 MB, free: 78.16 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001818/0.9301, allocations: 0.7431 MB / 445.9 MB, free: 77.41 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001147/0.9313, allocations: 326.8 kB / 446.2 MB, free: 77.09 MB / 346.7 MB Notification: Performance of SimCode: time 1.683e-06/0.9313, allocations: 0 / 446.2 MB, free: 77.09 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04063/0.9719, allocations: 12.65 MB / 458.8 MB, free: 64.3 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001558/0.9721, allocations: 171.3 kB / 459 MB, free: 64.07 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.008/3.98, allocations: 3.562 kB / 459 MB, free: 64.07 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat does not exist to compare? outputFormat=mat