Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009909/0.0009909, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.335/1.335, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000772/0.0007719, allocations: 86.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.79e-05/2.801e-05, allocations: 4 kB / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08667/0.08671, allocations: 47.57 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2945/0.3813, allocations: 82.48 MB / 452.6 MB, free: 10.41 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002027/0.3815, allocations: 70.97 kB / 452.7 MB, free: 10.38 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08337/0.4649, allocations: 42.91 MB / 495.6 MB, free: 1.305 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4649, allocations: 0 / 495.6 MB, free: 1.305 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.95e-05/0.465, allocations: 8 kB / 495.6 MB, free: 1.297 MB / 362.7 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.0009471/0.4659, allocations: 0.6897 MB / 496.3 MB, free: 0.5469 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.466, allocations: 12.03 kB / 496.3 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001051/0.4661, allocations: 70.53 kB / 496.3 MB, free: 468 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001152/0.4662, allocations: 47.44 kB / 496.4 MB, free: 420 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005384/0.4668, allocations: 355.2 kB / 496.7 MB, free: 16 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.178e-05/0.4668, allocations: 24.86 kB / 496.8 MB, free: 15.99 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.672e-05/0.4669, allocations: 39.94 kB / 496.8 MB, free: 15.95 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008215/0.4678, allocations: 471.5 kB / 497.3 MB, free: 15.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.4678, allocations: 0 / 497.3 MB, free: 15.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.229e-05/0.4678, allocations: 12 kB / 497.3 MB, free: 15.47 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.4679, allocations: 8 kB / 497.3 MB, free: 15.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000605/0.4685, allocations: 351 kB / 497.6 MB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001761/0.4702, allocations: 1.082 MB / 498.7 MB, free: 13.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008201/0.4711, allocations: 411.6 kB / 499.1 MB, free: 13.57 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002684/0.4714, allocations: 157.3 kB / 499.3 MB, free: 13.42 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.401e-05/0.4715, allocations: 4.281 kB / 499.3 MB, free: 13.41 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004651/0.4719, allocations: 323.2 kB / 499.6 MB, free: 13.09 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 3.477e-06/0.4719, allocations: 3.984 kB / 499.6 MB, free: 13.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.000961/0.4729, allocations: 0.5354 MB / 0.4884 GB, free: 12.53 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.482e-05/0.473, allocations: 110.8 kB / 0.4885 GB, free: 12.39 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002932/0.4733, allocations: 270.8 kB / 0.4888 GB, free: 12.13 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.641e-05/0.4734, allocations: 41.7 kB / 0.4888 GB, free: 12.08 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.4735, allocations: 168.7 kB / 0.489 GB, free: 11.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001003/0.4736, allocations: 82.98 kB / 0.489 GB, free: 11.83 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.865e-05/0.4736, allocations: 12 kB / 0.4891 GB, free: 11.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.4738, allocations: 342.8 kB / 0.4894 GB, free: 11.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002867/0.4741, allocations: 168.8 kB / 0.4895 GB, free: 11.31 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003106/0.4744, allocations: 204.6 kB / 0.4897 GB, free: 11.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000346/0.4747, allocations: 232.2 kB / 0.49 GB, free: 10.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.4747, allocations: 4 kB / 0.49 GB, free: 10.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009339/0.4757, allocations: 0.6071 MB / 0.4906 GB, free: 10.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.063e-05/0.4758, allocations: 63.39 kB / 0.4906 GB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.4758, allocations: 8.031 kB / 0.4906 GB, free: 10.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.4758, allocations: 4 kB / 0.4906 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001619/0.476, allocations: 59.91 kB / 0.4907 GB, free: 10.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.444e-05/0.476, allocations: 7.938 kB / 0.4907 GB, free: 10.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003256/0.4763, allocations: 47.88 kB / 0.4907 GB, free: 10.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002798/0.4766, allocations: 275.7 kB / 0.491 GB, free: 9.762 MB / 378.7 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,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,$PRE.FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And2.y,$PRE.FF.And2.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,$PRE.FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.And4.y,$PRE.FF.And4.auxiliary_n,FF.RS2.Nor1.auxiliary[2],$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.And1.y,$PRE.FF.And1.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.auxiliary_n,FF.And4.auxiliary_n,$PRE.FF.Not1.auxiliary,FF.RS1.Nor1.auxiliary[2],$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.y,$PRE.FF.And3.auxiliary_n,FF.Not1.auxiliary,CLK.y,$PRE.CLK.t_i,CLK.t_i,J.y,K.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002168/0.4768, allocations: 220.2 kB / 0.4912 GB, free: 9.527 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.501e-05/0.4769, allocations: 35.61 kB / 0.4912 GB, free: 9.492 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.559e-05/0.477, allocations: 39.08 kB / 0.4913 GB, free: 9.457 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.477, allocations: 4 kB / 0.4913 GB, free: 9.453 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.477, allocations: 0 / 0.4913 GB, free: 9.453 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.477, allocations: 0 / 0.4913 GB, free: 9.453 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005595/0.4776, allocations: 469.3 kB / 0.4917 GB, free: 8.945 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.4776, allocations: 4 kB / 0.4917 GB, free: 8.941 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001202/0.4777, allocations: 47.97 kB / 0.4918 GB, free: 8.895 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.051e-06/0.4778, allocations: 7.938 kB / 0.4918 GB, free: 8.887 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.272e-05/0.4778, allocations: 43.97 kB / 0.4918 GB, free: 8.844 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.4778, allocations: 4 kB / 0.4918 GB, free: 8.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4778, allocations: 0 / 0.4918 GB, free: 8.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008607/0.4787, allocations: 0.5623 MB / 0.4924 GB, free: 8.246 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002857/0.479, allocations: 204.6 kB / 0.4926 GB, free: 8.027 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.333e-05/0.4791, allocations: 16 kB / 0.4926 GB, free: 8.012 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.4794, allocations: 43.81 kB / 0.4926 GB, free: 7.969 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002088/0.4796, allocations: 83.91 kB / 0.4927 GB, free: 7.887 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002539/0.4798, allocations: 283.7 kB / 0.493 GB, free: 7.609 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001884/0.48, allocations: 195.1 kB / 0.4932 GB, free: 7.414 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.48, allocations: 0 / 0.4932 GB, free: 7.414 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003956/0.4804, allocations: 88 kB / 0.4933 GB, free: 7.328 MB / 378.7 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[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[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.y,FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.y,FF.And4.auxiliary_n,FF.Not1.auxiliary,CLK.y,CLK.t_i,J.y,K.y) * Number of discrete states: 13 (K.y,J.y,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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001286/0.4817, allocations: 1.144 MB / 0.4944 GB, free: 6.137 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007897/0.4825, allocations: 0.511 MB / 0.4949 GB, free: 5.602 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.4825, allocations: 4.062 kB / 0.4949 GB, free: 5.598 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000421/0.483, allocations: 342.5 kB / 0.4952 GB, free: 5.238 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001172/0.4842, allocations: 294.7 kB / 0.4955 GB, free: 4.953 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001416/0.4856, allocations: 0.6104 MB / 0.4961 GB, free: 4.309 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004133/0.486, allocations: 0.815 MB / 0.4969 GB, free: 3.461 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001296/0.4873, allocations: 0.7431 MB / 0.4976 GB, free: 2.715 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007501/0.4881, allocations: 334.8 kB / 0.4979 GB, free: 2.391 MB / 378.7 MB Notification: Performance of SimCode: time 6.21e-07/0.4881, allocations: 0 / 0.4979 GB, free: 2.391 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02603/0.5141, allocations: 12.77 MB / 0.5104 GB, free: 5.387 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001583/0.5143, allocations: 143.3 kB / 0.5105 GB, free: 5.168 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.89/2.404, allocations: 0 / 0.5105 GB, free: 5.168 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_FlipFlop_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_FlipFlop.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat does not exist to compare? outputFormat=mat