Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001325/0.001325, allocations: 118.2 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001517/0.001517, allocations: 202 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 63.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2525, allocations: 50.55 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003076/0.2557, allocations: 2.144 MB / 410.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002151/0.2578, allocations: 1.154 MB / 412.1 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.435e-05/0.2579, allocations: 4 kB / 412.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001825/0.2582, allocations: 47.58 kB / 412.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001126/0.2583, allocations: 51.58 kB / 412.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004849/0.2588, allocations: 171.7 kB / 412.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004849/0.2593, allocations: 451.7 kB / 412.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002734/0.2595, allocations: 164.4 kB / 412.9 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008405/0.2604, allocations: 0.8421 MB / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003259/0.2607, allocations: 251 kB / 414 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.41e-05/0.2608, allocations: 44 kB / 414.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001029/0.2609, allocations: 44 kB / 414.1 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001922/0.2611, allocations: 151.5 kB / 414.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002382/0.2614, allocations: 218.8 kB / 414.5 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007884/0.2622, allocations: 0.9255 MB / 415.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.2622, allocations: 3.938 kB / 415.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.2622, allocations: 0 / 415.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.837e-06/0.2622, allocations: 0 / 415.4 MB, free: 10.88 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001212/0.2634, allocations: 0.8875 MB / 416.3 MB, free: 9.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.2635, allocations: 12.03 kB / 416.3 MB, free: 9.918 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.983e-05/0.2636, allocations: 70.72 kB / 416.4 MB, free: 9.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001157/0.2637, allocations: 56.59 kB / 416.4 MB, free: 9.785 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000499/0.2642, allocations: 347.7 kB / 416.8 MB, free: 9.406 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.193e-05/0.2643, allocations: 25.03 kB / 416.8 MB, free: 9.383 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.738e-05/0.2644, allocations: 32.38 kB / 416.8 MB, free: 9.352 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008239/0.2652, allocations: 497.9 kB / 417.3 MB, free: 8.859 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.2652, allocations: 0 / 417.3 MB, free: 8.859 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.426e-05/0.2653, allocations: 19.98 kB / 417.3 MB, free: 8.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.2653, allocations: 8 kB / 417.3 MB, free: 8.832 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007172/0.266, allocations: 374.4 kB / 417.7 MB, free: 8.469 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001814/0.2678, allocations: 1.116 MB / 418.8 MB, free: 7.297 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/0.2689, allocations: 435.5 kB / 419.2 MB, free: 6.863 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003421/0.2692, allocations: 177.3 kB / 419.4 MB, free: 6.688 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.992e-05/0.2693, allocations: 4.281 kB / 419.4 MB, free: 6.684 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006051/0.2699, allocations: 344.1 kB / 419.7 MB, free: 6.336 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 1.883e-06/0.2699, allocations: 0 / 419.7 MB, free: 6.336 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.001396/0.2713, allocations: 0.7306 MB / 420.5 MB, free: 5.586 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.935e-05/0.2714, allocations: 114.8 kB / 420.6 MB, free: 5.449 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002884/0.2717, allocations: 302.5 kB / 420.9 MB, free: 5.145 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.289e-05/0.2718, allocations: 41.69 kB / 420.9 MB, free: 5.098 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001285/0.2719, allocations: 192.9 kB / 421.1 MB, free: 4.906 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.272, allocations: 87.36 kB / 421.2 MB, free: 4.82 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002435/0.2723, allocations: 182 kB / 421.4 MB, free: 4.637 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.2724, allocations: 342.8 kB / 421.7 MB, free: 4.293 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003619/0.2728, allocations: 180.8 kB / 421.9 MB, free: 4.117 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004092/0.2732, allocations: 240.5 kB / 422.1 MB, free: 3.867 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007871/0.274, allocations: 0.5246 MB / 422.6 MB, free: 3.305 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.274, allocations: 0 / 422.6 MB, free: 3.305 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001071/0.2751, allocations: 0.6373 MB / 423.3 MB, free: 2.648 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.784e-05/0.2751, allocations: 63.42 kB / 423.3 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.2751, allocations: 4 kB / 423.3 MB, free: 2.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.2752, allocations: 0 / 423.3 MB, free: 2.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/0.2753, allocations: 63.84 kB / 423.4 MB, free: 2.508 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.2753, allocations: 4 kB / 423.4 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000192/0.2755, allocations: 27.88 kB / 423.4 MB, free: 2.477 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002182/0.2758, allocations: 283.7 kB / 423.7 MB, free: 2.199 MB / 334.1 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,$PRE.FF.And2.auxiliary_n,FF.RS2.TD1.x_delayed,$PRE.FF.RS2.TD1.x,FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.x[2],FF.RS2.Nor2.x[1],$PRE.FF.And4.auxiliary_n,FF.RS1.TD1.x_delayed,$PRE.FF.RS1.TD1.x,FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.x[2],FF.RS1.Nor2.x[1],$PRE.FF.Not1.auxiliary,FF.And4.auxiliary_n,FF.And4.x[1],FF.And3.auxiliary_n,FF.And3.x[2],$PRE.FF.And1.auxiliary_n,FF.And1.y,FF.RS2.TD1.x,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary[2],K.y,J.y,CLK.t_i,$PRE.CLK.t_i,FF.Not1.auxiliary,$PRE.FF.And3.auxiliary_n,FF.And3.y,FF.And2.auxiliary_n,FF.And2.auxiliary[2],FF.And2.x[1],FF.And1.auxiliary_n,FF.And1.auxiliary[2],FF.And1.x[1],FF.RS1.TD1.x,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003034/0.2761, allocations: 293 kB / 424 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.012e-05/0.2762, allocations: 31.81 kB / 424 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.653e-05/0.2762, allocations: 46.83 kB / 424.1 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.2762, allocations: 4 kB / 424.1 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.2762, allocations: 0 / 424.1 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.2763, allocations: 7.922 kB / 424.1 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004715/0.2767, allocations: 473.3 kB / 424.6 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.2767, allocations: 4 kB / 424.6 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001052/0.2769, allocations: 55.89 kB / 424.6 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-06/0.2769, allocations: 4 kB / 424.6 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.327e-05/0.2769, allocations: 39.98 kB / 424.7 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.362e-06/0.277, allocations: 8 kB / 424.7 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.277, allocations: 0 / 424.7 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009602/0.2779, allocations: 0.6141 MB / 425.3 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002995/0.2782, allocations: 196.8 kB / 425.5 MB, free: 328 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001008/0.2784, allocations: 16 kB / 425.5 MB, free: 312 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001526/0.2785, allocations: 15.98 kB / 425.5 MB, free: 296 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001862/0.2787, allocations: 87.91 kB / 425.6 MB, free: 208 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002204/0.2789, allocations: 291.6 kB / 425.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001682/0.2791, allocations: 198 kB / 426.1 MB, free: 15.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2791, allocations: 0 / 426.1 MB, free: 15.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003735/0.2795, allocations: 103.8 kB / 426.2 MB, free: 15.62 MB / 350.1 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[1],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[1],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.x[1],FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.x[1],FF.And4.auxiliary_n,FF.Not1.auxiliary,CLK.t_i,J.y,K.y) * Number of discrete states: 13 (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,K.y,J.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001313/0.2808, allocations: 1.188 MB / 427.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009698/0.2818, allocations: 0.553 MB / 427.9 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2818, allocations: 0 / 427.9 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004934/0.2823, allocations: 362.4 kB / 428.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001225/0.2835, allocations: 341 kB / 428.6 MB, free: 13.13 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004536/0.2881, allocations: 3.515 MB / 432.1 MB, free: 9.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003407/0.2885, allocations: 0.8072 MB / 432.9 MB, free: 8.664 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001254/0.2897, allocations: 0.7471 MB / 433.7 MB, free: 7.914 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000741/0.2905, allocations: 346.7 kB / 434 MB, free: 7.574 MB / 350.1 MB Notification: Performance of SimCode: time 7.31e-07/0.2905, allocations: 7.938 kB / 434 MB, free: 7.566 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03023/0.3207, allocations: 13.64 MB / 447.6 MB, free: 9.832 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.562/7.883, allocations: 15.66 kB / 447.7 MB, free: 9.816 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop_res.csv --start-time 0 --stop-time 250 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 Modelica_trunk_Modelica_Electrical_Digital_Examples_FlipFlop.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches