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.001602/0.001602, allocations: 109.4 kB / 16.92 MB, free: 5.781 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.001852/0.001852, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.417/1.417, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 47.08 kB / 300.7 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1047, allocations: 49.44 MB / 350.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.00345/0.1082, allocations: 2.129 MB / 352.3 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002336/0.1106, allocations: 1.126 MB / 353.4 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001768/0.1108, allocations: 7.938 kB / 353.4 MB, free: 1.043 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002274/0.111, allocations: 47.52 kB / 353.5 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002081/0.1113, allocations: 35.66 kB / 353.5 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005203/0.1118, allocations: 179.7 kB / 353.7 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005204/0.1123, allocations: 455.7 kB / 354.1 MB, free: 348 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002713/0.1126, allocations: 156.9 kB / 354.3 MB, free: 188 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008481/0.1135, allocations: 0.8382 MB / 355.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003544/0.1138, allocations: 255 kB / 355.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001331/0.114, allocations: 40 kB / 355.4 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001109/0.1141, allocations: 47.94 kB / 355.5 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002348/0.1143, allocations: 139.6 kB / 355.6 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002681/0.1146, allocations: 222.7 kB / 355.8 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007744/0.1154, allocations: 0.9154 MB / 356.7 MB, free: 13.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1154, allocations: 0 / 356.7 MB, free: 13.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1154, allocations: 0 / 356.7 MB, free: 13.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.466e-05/0.1155, allocations: 0 / 356.7 MB, free: 13.73 MB / 302.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.001398/0.1169, allocations: 0.8723 MB / 357.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.1169, allocations: 12.03 kB / 357.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001083/0.117, allocations: 74.72 kB / 357.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000133/0.1172, allocations: 48.38 kB / 357.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004548/0.1176, allocations: 347.5 kB / 358.1 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.573e-05/0.1177, allocations: 29.02 kB / 358.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.541e-05/0.1178, allocations: 32.38 kB / 358.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009163/0.1187, allocations: 497.8 kB / 358.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.1187, allocations: 0 / 358.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.597e-05/0.1188, allocations: 16 kB / 358.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.277e-05/0.1188, allocations: 8 kB / 358.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007759/0.1196, allocations: 382.3 kB / 359 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001833/0.1214, allocations: 1.124 MB / 360.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/0.1225, allocations: 438.8 kB / 360.6 MB, free: 9.715 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003556/0.1229, allocations: 177.3 kB / 360.7 MB, free: 9.539 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.661e-05/0.123, allocations: 4.281 kB / 360.7 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006029/0.1236, allocations: 351 kB / 361.1 MB, free: 9.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 2.144e-06/0.1236, allocations: 0 / 361.1 MB, free: 9.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.001406/0.125, allocations: 0.7275 MB / 361.8 MB, free: 8.434 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.73e-05/0.1251, allocations: 118.8 kB / 361.9 MB, free: 8.293 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002784/0.1254, allocations: 294.5 kB / 362.2 MB, free: 8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.37e-05/0.1254, allocations: 41.7 kB / 362.3 MB, free: 7.953 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.1256, allocations: 180.7 kB / 362.4 MB, free: 7.773 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/0.1257, allocations: 87 kB / 362.5 MB, free: 7.688 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002596/0.126, allocations: 190 kB / 362.7 MB, free: 7.496 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.1261, allocations: 338.8 kB / 363 MB, free: 7.156 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003827/0.1265, allocations: 184.8 kB / 363.2 MB, free: 6.977 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004091/0.1269, allocations: 236.5 kB / 363.4 MB, free: 6.734 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008605/0.1278, allocations: 0.5184 MB / 364 MB, free: 6.176 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1278, allocations: 0 / 364 MB, free: 6.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001119/0.1289, allocations: 0.6476 MB / 364.6 MB, free: 5.512 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.895e-05/0.129, allocations: 67.42 kB / 364.7 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.129, allocations: 0 / 364.7 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.129, allocations: 4 kB / 364.7 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.1291, allocations: 59.91 kB / 364.7 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.1292, allocations: 4 kB / 364.7 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002019/0.1294, allocations: 31.77 kB / 364.8 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000253/0.1296, allocations: 279.7 kB / 365 MB, free: 5.062 MB / 302.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.0003216/0.1299, allocations: 293 kB / 365.3 MB, free: 4.754 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.083e-05/0.13, allocations: 31.62 kB / 365.4 MB, free: 4.723 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.485e-05/0.1301, allocations: 38.95 kB / 365.4 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.1301, allocations: 4 kB / 365.4 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.1301, allocations: 0 / 365.4 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.1301, allocations: 3.938 kB / 365.4 MB, free: 4.672 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005089/0.1307, allocations: 477.2 kB / 365.9 MB, free: 4.156 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1307, allocations: 0 / 365.9 MB, free: 4.156 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001043/0.1308, allocations: 59.91 kB / 365.9 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.1308, allocations: 0 / 365.9 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.839e-05/0.1309, allocations: 47.97 kB / 366 MB, free: 4.051 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.1309, allocations: 0 / 366 MB, free: 4.051 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/0.1309, allocations: 3.984 kB / 366 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.1319, allocations: 0.6091 MB / 366.6 MB, free: 3.406 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002501/0.1322, allocations: 200.7 kB / 366.8 MB, free: 3.191 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.1323, allocations: 16 kB / 366.8 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001512/0.1325, allocations: 15.98 kB / 366.8 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002109/0.1327, allocations: 87.91 kB / 366.9 MB, free: 3.074 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002392/0.1329, allocations: 279.6 kB / 367.2 MB, free: 2.801 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001825/0.1331, allocations: 205.9 kB / 367.4 MB, free: 2.602 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.533e-06/0.1331, allocations: 3.938 kB / 367.4 MB, free: 2.598 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000399/0.1335, allocations: 103.7 kB / 367.5 MB, free: 2.496 MB / 302.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.001364/0.1349, allocations: 1.184 MB / 368.7 MB, free: 1.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001103/0.136, allocations: 0.6081 MB / 369.3 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.136, allocations: 0 / 369.3 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004947/0.1365, allocations: 354.6 kB / 369.6 MB, free: 272 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1423/0.2788, allocations: 339.2 kB / 370 MB, free: 25.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005582/0.2845, allocations: 3.52 MB / 373.5 MB, free: 24.08 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003064/0.2848, allocations: 0.8049 MB / 374.3 MB, free: 23.38 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001302/0.2861, allocations: 0.7524 MB / 375 MB, free: 22.92 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007587/0.2869, allocations: 334.3 kB / 375.4 MB, free: 22.7 MB / 302.1 MB Notification: Performance of SimCode: time 1.082e-06/0.2869, allocations: 0 / 375.4 MB, free: 22.7 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03232/0.3192, allocations: 13.59 MB / 388.9 MB, free: 18.08 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.853/8.172, allocations: 11.8 kB / 389 MB, free: 18.07 MB / 302.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