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.001286/0.001286, allocations: 121.5 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001287/0.001287, allocations: 199.9 kB / 18.73 MB, free: 4.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001763/0.001763, allocations: 63.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2864/0.2882, allocations: 50.54 MB / 408.8 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003165/0.2914, allocations: 2.155 MB / 410.9 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002325/0.2938, allocations: 1.15 MB / 412.1 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.415e-05/0.2939, allocations: 4 kB / 412.1 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000185/0.2941, allocations: 55.5 kB / 412.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001023/0.2942, allocations: 39.66 kB / 412.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000477/0.2947, allocations: 167.7 kB / 412.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004795/0.2952, allocations: 463.6 kB / 412.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000265/0.2954, allocations: 171.9 kB / 412.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008484/0.2963, allocations: 0.8344 MB / 413.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003267/0.2966, allocations: 247 kB / 414 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.092e-05/0.2967, allocations: 40 kB / 414.1 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.806e-05/0.2968, allocations: 44 kB / 414.1 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001756/0.297, allocations: 151.5 kB / 414.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002327/0.2972, allocations: 218.8 kB / 414.5 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008136/0.2981, allocations: 0.9264 MB / 415.4 MB, free: 11.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2981, allocations: 0 / 415.4 MB, free: 11.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2981, allocations: 0 / 415.4 MB, free: 11.04 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.2981, allocations: 4 kB / 415.4 MB, free: 11.04 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.001227/0.2993, allocations: 0.8797 MB / 416.3 MB, free: 10.1 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.2994, allocations: 12.03 kB / 416.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000111/0.2995, allocations: 78.72 kB / 416.4 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001173/0.2996, allocations: 52.64 kB / 416.4 MB, free: 9.949 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004657/0.3001, allocations: 355.6 kB / 416.8 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.347e-05/0.3001, allocations: 28.97 kB / 416.8 MB, free: 9.535 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.465e-05/0.3002, allocations: 32.38 kB / 416.8 MB, free: 9.504 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008733/0.3011, allocations: 493.9 kB / 417.3 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.3011, allocations: 0 / 417.3 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.464e-05/0.3012, allocations: 15.98 kB / 417.3 MB, free: 9 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.3012, allocations: 8 kB / 417.3 MB, free: 8.992 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007341/0.302, allocations: 374.4 kB / 417.7 MB, free: 8.629 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001897/0.3039, allocations: 1.12 MB / 418.8 MB, free: 7.453 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001029/0.3049, allocations: 431.5 kB / 419.2 MB, free: 7.023 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003541/0.3053, allocations: 177.3 kB / 419.4 MB, free: 6.848 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.703e-05/0.3053, allocations: 4.281 kB / 419.4 MB, free: 6.844 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006293/0.306, allocations: 344.2 kB / 419.7 MB, free: 6.496 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 1.914e-06/0.306, allocations: 4 kB / 419.7 MB, free: 6.492 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.001427/0.3074, allocations: 0.7306 MB / 420.5 MB, free: 5.742 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.713e-05/0.3075, allocations: 110.8 kB / 420.6 MB, free: 5.609 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003207/0.3078, allocations: 310.5 kB / 420.9 MB, free: 5.297 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.287e-05/0.3079, allocations: 37.7 kB / 420.9 MB, free: 5.254 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.3081, allocations: 188.9 kB / 421.1 MB, free: 5.066 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000117/0.3082, allocations: 87.36 kB / 421.2 MB, free: 4.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002636/0.3085, allocations: 182 kB / 421.4 MB, free: 4.797 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.3086, allocations: 342.8 kB / 421.7 MB, free: 4.453 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003761/0.309, allocations: 180.8 kB / 421.9 MB, free: 4.277 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004114/0.3094, allocations: 244.5 kB / 422.1 MB, free: 4.023 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008274/0.3103, allocations: 0.5089 MB / 422.6 MB, free: 3.477 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.3103, allocations: 0 / 422.6 MB, free: 3.477 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001145/0.3114, allocations: 0.6555 MB / 423.3 MB, free: 2.805 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.048e-05/0.3115, allocations: 63.41 kB / 423.4 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.3115, allocations: 0 / 423.4 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.3115, allocations: 7.938 kB / 423.4 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001482/0.3117, allocations: 55.89 kB / 423.4 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.3117, allocations: 4 kB / 423.4 MB, free: 2.664 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001965/0.3119, allocations: 31.88 kB / 423.4 MB, free: 2.633 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002736/0.3122, allocations: 279.7 kB / 423.7 MB, free: 2.359 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.0003541/0.3126, allocations: 293 kB / 424 MB, free: 2.051 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.563e-05/0.3126, allocations: 31.81 kB / 424 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.105e-05/0.3127, allocations: 34.95 kB / 424.1 MB, free: 1.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-06/0.3127, allocations: 4 kB / 424.1 MB, free: 1.977 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3127, allocations: 0 / 424.1 MB, free: 1.977 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.3127, allocations: 3.938 kB / 424.1 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005583/0.3133, allocations: 485.3 kB / 424.6 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.3133, allocations: 3.938 kB / 424.6 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001033/0.3134, allocations: 47.91 kB / 424.6 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.3134, allocations: 4 kB / 424.6 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.419e-05/0.3135, allocations: 47.97 kB / 424.7 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.3135, allocations: 4 kB / 424.7 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.3135, allocations: 160 / 424.7 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.3146, allocations: 0.6102 MB / 425.3 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002767/0.3149, allocations: 200.8 kB / 425.5 MB, free: 500 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.62e-05/0.315, allocations: 15.98 kB / 425.5 MB, free: 484 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001473/0.3152, allocations: 12 kB / 425.5 MB, free: 472 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002369/0.3154, allocations: 95.89 kB / 425.6 MB, free: 376 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002717/0.3157, allocations: 287.6 kB / 425.9 MB, free: 88 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002239/0.3159, allocations: 202 kB / 426.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3159, allocations: 0 / 426.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004333/0.3164, allocations: 99.84 kB / 426.2 MB, free: 15.79 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.001487/0.3179, allocations: 1.184 MB / 427.3 MB, free: 14.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001023/0.3189, allocations: 0.553 MB / 427.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.3189, allocations: 0 / 427.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005199/0.3194, allocations: 366.3 kB / 428.3 MB, free: 13.6 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001159/0.3206, allocations: 344.3 kB / 428.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00514/0.3258, allocations: 3.527 MB / 432.1 MB, free: 9.652 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000468/0.3263, allocations: 0.8033 MB / 432.9 MB, free: 8.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001438/0.3277, allocations: 0.751 MB / 433.7 MB, free: 8.066 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007884/0.3285, allocations: 338.8 kB / 434 MB, free: 7.734 MB / 350.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3285, allocations: 0 / 434 MB, free: 7.734 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03558/0.3641, allocations: 13.63 MB / 447.6 MB, free: 10 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.239/8.603, allocations: 14.56 kB / 447.7 MB, free: 9.992 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.1.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