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.001076/0.001076, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001102/0.001102, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2807, allocations: 50.53 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003036/0.2837, allocations: 2.155 MB / 410.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002212/0.286, allocations: 1.158 MB / 412.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001054/0.2861, allocations: 4 kB / 412.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000227/0.2863, allocations: 51.58 kB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000118/0.2865, allocations: 43.58 kB / 412.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005267/0.287, allocations: 167.8 kB / 412.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005173/0.2875, allocations: 459.6 kB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000303/0.2878, allocations: 164.4 kB / 412.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008188/0.2887, allocations: 0.846 MB / 413.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003207/0.289, allocations: 251 kB / 414 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001122/0.2891, allocations: 44 kB / 414.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001076/0.2892, allocations: 40 kB / 414.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001943/0.2894, allocations: 151.5 kB / 414.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002492/0.2897, allocations: 218.9 kB / 414.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000814/0.2905, allocations: 0.9254 MB / 415.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2905, allocations: 7.938 kB / 415.4 MB, free: 10.87 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.2905, allocations: 0 / 415.4 MB, free: 10.87 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.2905, allocations: 0 / 415.4 MB, free: 10.87 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.001241/0.2918, allocations: 0.8759 MB / 416.3 MB, free: 9.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.2918, allocations: 8.031 kB / 416.3 MB, free: 9.922 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.816e-05/0.2919, allocations: 74.72 kB / 416.4 MB, free: 9.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001069/0.292, allocations: 52.59 kB / 416.4 MB, free: 9.789 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004214/0.2925, allocations: 347.7 kB / 416.7 MB, free: 9.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.313e-05/0.2925, allocations: 33.03 kB / 416.8 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.604e-05/0.2926, allocations: 32.38 kB / 416.8 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008289/0.2934, allocations: 497.8 kB / 417.3 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.301e-05/0.2935, allocations: 0 / 417.3 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.712e-05/0.2935, allocations: 16 kB / 417.3 MB, free: 8.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.2935, allocations: 8 kB / 417.3 MB, free: 8.832 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000721/0.2943, allocations: 374.4 kB / 417.7 MB, free: 8.469 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001642/0.2959, allocations: 1.113 MB / 418.8 MB, free: 7.301 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009932/0.2969, allocations: 439.5 kB / 419.2 MB, free: 6.863 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003284/0.2973, allocations: 177.3 kB / 419.4 MB, free: 6.688 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.529e-05/0.2974, allocations: 8.281 kB / 419.4 MB, free: 6.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005886/0.298, allocations: 344.2 kB / 419.7 MB, free: 6.332 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 1.743e-06/0.298, allocations: 0 / 419.7 MB, free: 6.332 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.001399/0.2994, allocations: 0.7305 MB / 420.5 MB, free: 5.582 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.066e-05/0.2995, allocations: 114.8 kB / 420.6 MB, free: 5.445 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002899/0.2998, allocations: 306.5 kB / 420.9 MB, free: 5.137 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.286e-05/0.2998, allocations: 41.7 kB / 420.9 MB, free: 5.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001423/0.3, allocations: 180.9 kB / 421.1 MB, free: 4.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001159/0.3001, allocations: 91.34 kB / 421.2 MB, free: 4.82 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002582/0.3004, allocations: 186 kB / 421.4 MB, free: 4.633 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.3005, allocations: 338.8 kB / 421.7 MB, free: 4.293 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003578/0.3009, allocations: 184.8 kB / 421.9 MB, free: 4.113 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003927/0.3013, allocations: 236.5 kB / 422.1 MB, free: 3.867 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007904/0.3021, allocations: 0.5205 MB / 422.6 MB, free: 3.309 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.3021, allocations: 0 / 422.6 MB, free: 3.309 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001095/0.3032, allocations: 0.6555 MB / 423.3 MB, free: 2.637 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.063e-05/0.3033, allocations: 59.41 kB / 423.4 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.3033, allocations: 0 / 423.4 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.3033, allocations: 4 kB / 423.4 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001478/0.3035, allocations: 59.91 kB / 423.4 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.275e-05/0.3035, allocations: 7.984 kB / 423.4 MB, free: 2.496 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001813/0.3037, allocations: 31.83 kB / 423.5 MB, free: 2.465 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000246/0.3039, allocations: 279.7 kB / 423.7 MB, free: 2.191 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.0003019/0.3042, allocations: 289.1 kB / 424 MB, free: 1.887 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.772e-05/0.3043, allocations: 35.81 kB / 424 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.595e-05/0.3044, allocations: 38.89 kB / 424.1 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.3044, allocations: 4 kB / 424.1 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/0.3044, allocations: 4 kB / 424.1 MB, free: 1.801 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.3044, allocations: 7.922 kB / 424.1 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005005/0.3049, allocations: 473.3 kB / 424.6 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.3049, allocations: 4 kB / 424.6 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001057/0.305, allocations: 51.91 kB / 424.6 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.3051, allocations: 0 / 424.6 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.831e-05/0.3051, allocations: 47.97 kB / 424.7 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.3051, allocations: 0 / 424.7 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3052, allocations: 0 / 424.7 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009798/0.3061, allocations: 0.6103 MB / 425.3 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002554/0.3064, allocations: 196.8 kB / 425.5 MB, free: 336 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.475e-05/0.3065, allocations: 19.94 kB / 425.5 MB, free: 316 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001384/0.3067, allocations: 15.98 kB / 425.5 MB, free: 300 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002239/0.3069, allocations: 95.83 kB / 425.6 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002442/0.3071, allocations: 287.6 kB / 425.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001655/0.3073, allocations: 202 kB / 426.1 MB, free: 15.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3073, allocations: 4 kB / 426.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003571/0.3077, allocations: 95.84 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.00134/0.309, allocations: 1.184 MB / 427.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00091/0.31, allocations: 0.553 MB / 427.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.31, allocations: 0 / 427.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004978/0.3105, allocations: 358.4 kB / 428.3 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001152/0.3116, allocations: 347.1 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.004634/0.3163, allocations: 3.519 MB / 432.1 MB, free: 9.496 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003327/0.3166, allocations: 0.8072 MB / 432.9 MB, free: 8.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001326/0.318, allocations: 0.751 MB / 433.7 MB, free: 7.906 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007885/0.3188, allocations: 338.8 kB / 434 MB, free: 7.574 MB / 350.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3188, allocations: 3.938 kB / 434 MB, free: 7.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03394/0.3527, allocations: 13.63 MB / 447.6 MB, free: 9.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.688/8.04, allocations: 10.5 kB / 447.7 MB, free: 9.832 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