Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001281/0.001281, allocations: 108.9 kB / 17.06 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 200 kB / 18.01 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 47.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2552/0.2566, allocations: 49.43 MB / 400.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003239/0.2599, allocations: 2.137 MB / 402.4 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002328/0.2623, allocations: 1.111 MB / 403.5 MB, free: 5.578 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001138/0.2624, allocations: 11.94 kB / 403.5 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001929/0.2626, allocations: 51.5 kB / 403.5 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001116/0.2627, allocations: 35.66 kB / 403.6 MB, free: 5.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005077/0.2632, allocations: 171.7 kB / 403.8 MB, free: 5.312 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005161/0.2638, allocations: 467.6 kB / 404.2 MB, free: 4.855 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002792/0.2641, allocations: 168.4 kB / 404.4 MB, free: 4.691 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000914/0.265, allocations: 0.8421 MB / 405.2 MB, free: 3.848 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003455/0.2653, allocations: 251 kB / 405.5 MB, free: 3.602 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001155/0.2655, allocations: 44 kB / 405.5 MB, free: 3.559 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001059/0.2656, allocations: 47.94 kB / 405.5 MB, free: 3.512 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001935/0.2658, allocations: 135.6 kB / 405.7 MB, free: 3.379 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002582/0.266, allocations: 222.7 kB / 405.9 MB, free: 3.16 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008416/0.2669, allocations: 0.9294 MB / 406.8 MB, free: 2.23 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.2669, allocations: 0 / 406.8 MB, free: 2.23 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2669, allocations: 0 / 406.8 MB, free: 2.23 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.2669, allocations: 0 / 406.8 MB, free: 2.23 MB / 318.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.001224/0.2681, allocations: 0.8759 MB / 407.7 MB, free: 1.293 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.2682, allocations: 8.031 kB / 407.7 MB, free: 1.285 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001037/0.2683, allocations: 78.66 kB / 407.8 MB, free: 1.199 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001109/0.2684, allocations: 48.66 kB / 407.8 MB, free: 1.152 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004916/0.2689, allocations: 355.5 kB / 408.2 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.733e-05/0.269, allocations: 37.02 kB / 408.2 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.872e-05/0.269, allocations: 36.38 kB / 408.3 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008884/0.2699, allocations: 485.9 kB / 408.7 MB, free: 220 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.27, allocations: 0 / 408.7 MB, free: 220 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.222e-05/0.27, allocations: 19.98 kB / 408.7 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.27e-05/0.2701, allocations: 8 kB / 408.8 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008448/0.2709, allocations: 374.4 kB / 409.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001746/0.2727, allocations: 1.116 MB / 410.2 MB, free: 14.65 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001084/0.2738, allocations: 431.5 kB / 410.7 MB, free: 14.22 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00036/0.2741, allocations: 181.3 kB / 410.8 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.826e-05/0.2742, allocations: 4.281 kB / 410.8 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006405/0.2749, allocations: 351 kB / 411.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 1.984e-06/0.2749, allocations: 3.938 kB / 411.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.001472/0.2764, allocations: 0.7239 MB / 411.9 MB, free: 12.94 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.164e-05/0.2764, allocations: 118.8 kB / 412 MB, free: 12.8 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000339/0.2768, allocations: 306.5 kB / 412.3 MB, free: 12.49 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.767e-05/0.2769, allocations: 37.7 kB / 412.4 MB, free: 12.45 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001401/0.277, allocations: 181 kB / 412.5 MB, free: 12.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000104/0.2771, allocations: 87.38 kB / 412.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002736/0.2774, allocations: 186 kB / 412.8 MB, free: 12 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.2776, allocations: 342.8 kB / 413.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003801/0.2779, allocations: 180.8 kB / 413.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004143/0.2784, allocations: 236.5 kB / 413.5 MB, free: 11.23 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008764/0.2793, allocations: 0.5299 MB / 414.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.2793, allocations: 4 kB / 414.1 MB, free: 10.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001216/0.2805, allocations: 0.6399 MB / 414.7 MB, free: 9.996 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.551e-05/0.2806, allocations: 59.41 kB / 414.8 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.2806, allocations: 4 kB / 414.8 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.622e-05/0.2806, allocations: 0 / 414.8 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001989/0.2808, allocations: 67.83 kB / 414.9 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/0.2809, allocations: 4 kB / 414.9 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002139/0.2811, allocations: 35.84 kB / 414.9 MB, free: 9.816 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000296/0.2814, allocations: 279.7 kB / 415.2 MB, free: 9.543 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.0004012/0.2818, allocations: 289.1 kB / 415.4 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.837e-05/0.2819, allocations: 31.81 kB / 415.5 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.609e-05/0.282, allocations: 34.95 kB / 415.5 MB, free: 9.168 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.282, allocations: 8 kB / 415.5 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.282, allocations: 0 / 415.5 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.282, allocations: 3.938 kB / 415.5 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005949/0.2826, allocations: 477.3 kB / 416 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.2826, allocations: 4 kB / 416 MB, free: 8.637 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001221/0.2827, allocations: 51.84 kB / 416 MB, free: 8.586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.2828, allocations: 3.984 kB / 416 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.686e-05/0.2828, allocations: 47.97 kB / 416.1 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.2828, allocations: 0 / 416.1 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.2829, allocations: 4 kB / 416.1 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001161/0.284, allocations: 0.617 MB / 416.7 MB, free: 7.883 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000264/0.2843, allocations: 192.9 kB / 416.9 MB, free: 7.676 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.967e-05/0.2844, allocations: 19.98 kB / 416.9 MB, free: 7.656 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001368/0.2845, allocations: 12 kB / 416.9 MB, free: 7.645 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002476/0.2848, allocations: 87.91 kB / 417 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002643/0.2851, allocations: 287.6 kB / 417.3 MB, free: 7.277 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000203/0.2853, allocations: 209.9 kB / 417.5 MB, free: 7.07 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2853, allocations: 0 / 417.5 MB, free: 7.07 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003864/0.2857, allocations: 99.77 kB / 417.6 MB, free: 6.973 MB / 334.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.001491/0.2872, allocations: 1.188 MB / 418.8 MB, free: 5.742 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001073/0.2883, allocations: 0.5574 MB / 419.3 MB, free: 5.16 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.123e-06/0.2883, allocations: 0 / 419.3 MB, free: 5.16 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000649/0.2889, allocations: 362.6 kB / 419.7 MB, free: 4.781 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001286/0.2902, allocations: 335.1 kB / 420 MB, free: 4.484 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005146/0.2954, allocations: 3.522 MB / 423.6 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004646/0.2959, allocations: 0.8072 MB / 424.4 MB, free: 16 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001451/0.2974, allocations: 0.7471 MB / 425.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007753/0.2981, allocations: 338.8 kB / 425.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of SimCode: time 1.012e-06/0.2981, allocations: 0 / 425.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03699/0.3351, allocations: 13.64 MB / 439.1 MB, free: 1.242 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.051/8.386, allocations: 23.34 kB / 439.1 MB, free: 1.223 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Digital_Examples_FlipFlop.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches