Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_4_1_0-beta_om_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.001265/0.001265, 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.001356/0.001355, 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 4.1.0-beta.om/package.mo): time 1.397/1.397, allocations: 227.7 MB / 247.2 MB, free: 10.18 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002176/0.002176, allocations: 59.91 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2484/0.2506, allocations: 50.55 MB / 409.1 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003452/0.2541, allocations: 2.151 MB / 411.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00263/0.2567, allocations: 1.158 MB / 412.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001885/0.2569, allocations: 3.938 kB / 412.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002199/0.2572, allocations: 51.52 kB / 412.4 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001594/0.2574, allocations: 43.66 kB / 412.5 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006254/0.258, allocations: 171.7 kB / 412.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005861/0.2586, allocations: 455.7 kB / 413.1 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003057/0.2589, allocations: 168.4 kB / 413.2 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009609/0.2599, allocations: 0.846 MB / 414.1 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004233/0.2603, allocations: 247 kB / 414.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001489/0.2605, allocations: 44 kB / 414.4 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001115/0.2606, allocations: 40 kB / 414.4 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002033/0.2608, allocations: 151.5 kB / 414.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002854/0.2611, allocations: 218.9 kB / 414.8 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009633/0.2621, allocations: 0.9216 MB / 415.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.2621, allocations: 3.938 kB / 415.7 MB, free: 10.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2621, allocations: 3.938 kB / 415.7 MB, free: 10.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.591e-05/0.2621, allocations: 0 / 415.7 MB, free: 10.7 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.001608/0.2637, allocations: 0.8837 MB / 416.6 MB, free: 9.754 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.2638, allocations: 8.031 kB / 416.6 MB, free: 9.746 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001388/0.2639, allocations: 74.72 kB / 416.7 MB, free: 9.664 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001418/0.2641, allocations: 52.66 kB / 416.7 MB, free: 9.613 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004695/0.2646, allocations: 347.6 kB / 417.1 MB, free: 9.234 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.315e-05/0.2646, allocations: 25.03 kB / 417.1 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.047e-05/0.2647, allocations: 36.38 kB / 417.1 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009435/0.2656, allocations: 497.8 kB / 417.6 MB, free: 8.684 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.2657, allocations: 4 kB / 417.6 MB, free: 8.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.989e-05/0.2657, allocations: 12 kB / 417.6 MB, free: 8.668 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.2657, allocations: 8 kB / 417.6 MB, free: 8.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007685/0.2665, allocations: 374.4 kB / 418 MB, free: 8.297 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001909/0.2684, allocations: 1.113 MB / 419.1 MB, free: 7.129 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001138/0.2696, allocations: 439.5 kB / 419.5 MB, free: 6.691 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003695/0.27, allocations: 173.3 kB / 419.7 MB, free: 6.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.177e-05/0.27, allocations: 4.281 kB / 419.7 MB, free: 6.516 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007366/0.2708, allocations: 348.2 kB / 420.1 MB, free: 6.164 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 2.113e-06/0.2708, allocations: 0 / 420.1 MB, free: 6.164 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.001536/0.2723, allocations: 0.7306 MB / 420.8 MB, free: 5.414 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.265e-05/0.2724, allocations: 110.8 kB / 420.9 MB, free: 5.281 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000334/0.2728, allocations: 306.5 kB / 421.2 MB, free: 4.973 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.472e-05/0.2729, allocations: 41.7 kB / 421.2 MB, free: 4.926 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001531/0.273, allocations: 184.9 kB / 421.4 MB, free: 4.742 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.2731, allocations: 87.36 kB / 421.5 MB, free: 4.656 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002912/0.2734, allocations: 186 kB / 421.7 MB, free: 4.469 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.2736, allocations: 346.7 kB / 422 MB, free: 4.121 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003824/0.274, allocations: 176.8 kB / 422.2 MB, free: 3.949 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004534/0.2745, allocations: 248.5 kB / 422.4 MB, free: 3.691 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009825/0.2755, allocations: 0.5106 MB / 422.9 MB, free: 3.141 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.2755, allocations: 0 / 422.9 MB, free: 3.141 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001215/0.2767, allocations: 0.6475 MB / 423.6 MB, free: 2.477 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.719e-05/0.2768, allocations: 67.44 kB / 423.7 MB, free: 2.398 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.2768, allocations: 3.984 kB / 423.7 MB, free: 2.395 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.2768, allocations: 4 kB / 423.7 MB, free: 2.391 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001544/0.277, allocations: 55.91 kB / 423.7 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.277, allocations: 4 kB / 423.7 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002112/0.2772, allocations: 31.88 kB / 423.8 MB, free: 2.301 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002902/0.2775, allocations: 279.7 kB / 424 MB, free: 2.027 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.000373/0.2779, allocations: 297 kB / 424.3 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.855e-05/0.278, allocations: 31.81 kB / 424.4 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.647e-05/0.2781, allocations: 34.95 kB / 424.4 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.68e-06/0.2781, allocations: 7.938 kB / 424.4 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.2781, allocations: 0 / 424.4 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.2781, allocations: 3.938 kB / 424.4 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006074/0.2787, allocations: 477.3 kB / 424.9 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.155e-06/0.2787, allocations: 4 kB / 424.9 MB, free: 1.113 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001124/0.2788, allocations: 51.91 kB / 424.9 MB, free: 1.062 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.2789, allocations: 0 / 424.9 MB, free: 1.062 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.618e-05/0.2789, allocations: 47.97 kB / 425 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.2789, allocations: 160 / 425 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.279, allocations: 0 / 425 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001101/0.2801, allocations: 0.6064 MB / 425.6 MB, free: 388 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002546/0.2803, allocations: 204.8 kB / 425.8 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.615e-05/0.2804, allocations: 16 kB / 425.8 MB, free: 148 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001379/0.2806, allocations: 19.97 kB / 425.8 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002179/0.2808, allocations: 83.92 kB / 425.9 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002958/0.2811, allocations: 287.6 kB / 426.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002075/0.2813, allocations: 205.9 kB / 426.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2813, allocations: 0 / 426.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000383/0.2817, allocations: 95.84 kB / 426.5 MB, free: 15.46 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.001523/0.2832, allocations: 1.196 MB / 427.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001019/0.2843, allocations: 0.557 MB / 428.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2843, allocations: 0 / 428.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005139/0.2848, allocations: 350.5 kB / 428.6 MB, free: 13.28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001288/0.2861, allocations: 355.4 kB / 428.9 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005054/0.2912, allocations: 3.522 MB / 432.4 MB, free: 9.324 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004771/0.2917, allocations: 0.8111 MB / 433.2 MB, free: 8.484 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001362/0.293, allocations: 0.7471 MB / 434 MB, free: 7.734 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00077/0.2938, allocations: 334.8 kB / 434.3 MB, free: 7.406 MB / 350.1 MB Notification: Performance of SimCode: time 2.334e-06/0.2938, allocations: 4 kB / 434.3 MB, free: 7.402 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03696/0.3308, allocations: 13.65 MB / 448 MB, free: 9.703 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.143/8.474, allocations: 11.5 kB / 448 MB, free: 9.695 MB / 366.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.FlipFlop.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Electrical_Digital_Examples_FlipFlop.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1)