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.001735/0.001735, allocations: 106 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003309/0.003309, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 57.83 kB / 307 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09553/0.09684, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003427/0.1003, allocations: 2.149 MB / 359.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002621/0.103, allocations: 1.161 MB / 360.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001865/0.1032, allocations: 4 kB / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000213/0.1034, allocations: 51.52 kB / 360.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001583/0.1036, allocations: 43.64 kB / 361 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005311/0.1041, allocations: 167.7 kB / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000496/0.1046, allocations: 459.7 kB / 361.6 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000285/0.1049, allocations: 164.8 kB / 361.8 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008149/0.1058, allocations: 0.8344 MB / 362.6 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004281/0.1062, allocations: 255 kB / 362.8 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001541/0.1064, allocations: 40 kB / 362.9 MB, free: 8.672 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000133/0.1065, allocations: 44 kB / 362.9 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002031/0.1067, allocations: 147.5 kB / 363.1 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002716/0.107, allocations: 218.8 kB / 363.3 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007709/0.1078, allocations: 0.9076 MB / 364.2 MB, free: 7.359 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.1078, allocations: 0 / 364.2 MB, free: 7.359 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1078, allocations: 0 / 364.2 MB, free: 7.359 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.33e-05/0.1078, allocations: 0 / 364.2 MB, free: 7.359 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.001335/0.1092, allocations: 0.8762 MB / 365.1 MB, free: 6.418 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.1092, allocations: 15.97 kB / 365.1 MB, free: 6.402 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001185/0.1093, allocations: 70.72 kB / 365.1 MB, free: 6.324 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000126/0.1095, allocations: 48.38 kB / 365.2 MB, free: 6.277 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004335/0.1099, allocations: 351.5 kB / 365.5 MB, free: 5.895 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.874e-05/0.11, allocations: 29.2 kB / 365.6 MB, free: 5.867 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.432e-05/0.1101, allocations: 36.38 kB / 365.6 MB, free: 5.832 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008817/0.111, allocations: 493.7 kB / 366.1 MB, free: 5.348 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.111, allocations: 4 kB / 366.1 MB, free: 5.344 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.876e-05/0.1111, allocations: 12 kB / 366.1 MB, free: 5.332 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.1111, allocations: 8 kB / 366.1 MB, free: 5.324 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007642/0.1119, allocations: 374.4 kB / 366.5 MB, free: 4.957 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001805/0.1137, allocations: 1.128 MB / 367.6 MB, free: 3.777 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/0.1148, allocations: 431.5 kB / 368 MB, free: 3.348 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003679/0.1151, allocations: 181.3 kB / 368.2 MB, free: 3.168 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.703e-05/0.1152, allocations: 4.281 kB / 368.2 MB, free: 3.164 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006224/0.1158, allocations: 343.1 kB / 368.5 MB, free: 2.816 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 1.984e-06/0.1159, allocations: 3.938 kB / 368.5 MB, free: 2.812 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.001473/0.1173, allocations: 0.7265 MB / 369.3 MB, free: 2.066 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.754e-05/0.1174, allocations: 118.8 kB / 369.4 MB, free: 1.926 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003082/0.1177, allocations: 306.4 kB / 369.7 MB, free: 1.617 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.6e-05/0.1178, allocations: 37.7 kB / 369.7 MB, free: 1.574 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.118, allocations: 188.6 kB / 369.9 MB, free: 1.383 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/0.1181, allocations: 83 kB / 370 MB, free: 1.301 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003152/0.1184, allocations: 182 kB / 370.2 MB, free: 1.117 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.1186, allocations: 342.8 kB / 370.5 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004094/0.119, allocations: 184.8 kB / 370.7 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00042/0.1194, allocations: 236.5 kB / 370.9 MB, free: 352 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1512/0.2706, allocations: 0.5053 MB / 371.4 MB, free: 19.72 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.654e-06/0.2706, allocations: 0.6562 kB / 371.4 MB, free: 19.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001254/0.2719, allocations: 0.649 MB / 372.1 MB, free: 19.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/0.2719, allocations: 61.48 kB / 372.1 MB, free: 19.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.272, allocations: 0 / 372.1 MB, free: 19.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.272, allocations: 7.219 kB / 372.1 MB, free: 19.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001492/0.2721, allocations: 62.91 kB / 372.2 MB, free: 19.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.2722, allocations: 5.094 kB / 372.2 MB, free: 19.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002155/0.2724, allocations: 29.59 kB / 372.2 MB, free: 19.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002683/0.2727, allocations: 281.5 kB / 372.5 MB, free: 19.54 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.0003212/0.273, allocations: 296.5 kB / 372.8 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.626e-05/0.2731, allocations: 29.19 kB / 372.8 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.799e-05/0.2732, allocations: 39.39 kB / 372.9 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.2732, allocations: 4.281 kB / 372.9 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.2732, allocations: 0.5625 kB / 372.9 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.2732, allocations: 3.328 kB / 372.9 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004798/0.2737, allocations: 479.6 kB / 373.3 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2737, allocations: 4.594 kB / 373.3 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001056/0.2738, allocations: 49.86 kB / 373.4 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.2738, allocations: 2.062 kB / 373.4 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.38e-05/0.2739, allocations: 47.98 kB / 373.4 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.2739, allocations: 0.9375 kB / 373.4 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2739, allocations: 3.734 kB / 373.4 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/0.2749, allocations: 0.6063 MB / 374 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002197/0.2752, allocations: 193.8 kB / 374.2 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001069/0.2753, allocations: 17 kB / 374.3 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001569/0.2755, allocations: 16.84 kB / 374.3 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00021/0.2757, allocations: 87.06 kB / 374.4 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002303/0.2759, allocations: 283.8 kB / 374.6 MB, free: 18.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001562/0.2761, allocations: 200.5 kB / 374.8 MB, free: 18.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2761, allocations: 1.125 kB / 374.8 MB, free: 18.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004034/0.2765, allocations: 109.1 kB / 374.9 MB, free: 18.84 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.001197/0.2777, allocations: 1.177 MB / 376.1 MB, free: 18.11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001024/0.2787, allocations: 0.6029 MB / 376.7 MB, free: 17.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2788, allocations: 0 / 376.7 MB, free: 17.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004726/0.2792, allocations: 361.5 kB / 377.1 MB, free: 17.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001273/0.2805, allocations: 335.5 kB / 377.4 MB, free: 17.65 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004354/0.2849, allocations: 3.527 MB / 380.9 MB, free: 15.63 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000243/0.2851, allocations: 0.8091 MB / 381.7 MB, free: 14.92 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001249/0.2864, allocations: 0.7499 MB / 382.5 MB, free: 14.44 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007333/0.2871, allocations: 338.5 kB / 382.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of SimCode: time 9.02e-07/0.2872, allocations: 0 / 382.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02809/0.3152, allocations: 13.58 MB / 396.4 MB, free: 7.262 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.645/7.96, allocations: 21.56 kB / 396.4 MB, free: 7.25 MB / 302.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