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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001395/0.001395, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 225.6 MB / 234.8 MB, free: 3.223 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001002/0.001002, allocations: 97.98 kB / 286.7 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.941e-05/2.928e-05, allocations: 4 kB / 343.8 MB, free: 8.172 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1115, allocations: 51.47 MB / 395.3 MB, free: 4.656 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3984/0.5099, allocations: 83.54 MB / 478.8 MB, free: 9.152 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002073/0.5102, allocations: 69.33 kB / 478.9 MB, free: 9.125 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07908/0.5893, allocations: 43.18 MB / 0.5098 GB, free: 3.758 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.5893, allocations: 0 / 0.5098 GB, free: 3.758 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.438e-05/0.5894, allocations: 8 kB / 0.5098 GB, free: 3.75 MB / 378.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.001064/0.5904, allocations: 0.6945 MB / 0.5105 GB, free: 2.996 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/0.5905, allocations: 8.031 kB / 0.5105 GB, free: 2.988 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001351/0.5906, allocations: 43.53 kB / 0.5106 GB, free: 2.945 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000549/0.5912, allocations: 355.1 kB / 0.5109 GB, free: 2.555 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.386e-05/0.5912, allocations: 15.95 kB / 0.5109 GB, free: 2.539 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.891e-05/0.5913, allocations: 24 kB / 0.5109 GB, free: 2.516 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005923/0.5919, allocations: 333.4 kB / 0.5113 GB, free: 2.191 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006984/0.5926, allocations: 421.9 kB / 0.5117 GB, free: 1.773 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.5927, allocations: 8 kB / 0.5117 GB, free: 1.766 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.055e-05/0.5927, allocations: 4 kB / 0.5117 GB, free: 1.762 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.5927, allocations: 8 kB / 0.5117 GB, free: 1.754 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001674/0.5944, allocations: 1.007 MB / 0.5127 GB, free: 0.7031 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007823/0.5952, allocations: 396.8 kB / 0.513 GB, free: 316 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002236/0.5955, allocations: 141.4 kB / 0.5132 GB, free: 172 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.235e-05/0.5955, allocations: 13.95 kB / 0.5132 GB, free: 160 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004333/0.596, allocations: 311.2 kB / 0.5135 GB, free: 15.84 MB / 394.7 MB Notification: Performance of pre-optimization done (n=35): time 1.803e-06/0.596, allocations: 0 / 0.5135 GB, free: 15.84 MB / 394.7 MB Notification: Performance of matching and sorting (n=35): time 0.0007944/0.5968, allocations: 466.5 kB / 0.5139 GB, free: 15.38 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.478e-05/0.5969, allocations: 110.8 kB / 0.514 GB, free: 15.25 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002958/0.5972, allocations: 262 kB / 0.5143 GB, free: 14.99 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.595e-05/0.5973, allocations: 37.7 kB / 0.5143 GB, free: 14.95 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.5974, allocations: 168.7 kB / 0.5145 GB, free: 14.78 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.5975, allocations: 79 kB / 0.5146 GB, free: 14.7 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.747e-05/0.5976, allocations: 0 / 0.5146 GB, free: 14.7 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.5977, allocations: 338.8 kB / 0.5149 GB, free: 14.36 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002328/0.598, allocations: 152.8 kB / 0.515 GB, free: 14.21 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002838/0.5982, allocations: 203.7 kB / 0.5152 GB, free: 13.99 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002706/0.5985, allocations: 167.9 kB / 0.5154 GB, free: 13.83 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.5985, allocations: 0 / 0.5154 GB, free: 13.83 MB / 394.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008024/0.5993, allocations: 0.519 MB / 0.5159 GB, free: 13.3 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.532e-05/0.5994, allocations: 63.39 kB / 0.5159 GB, free: 13.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.5994, allocations: 4 kB / 0.5159 GB, free: 13.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.5994, allocations: 4.781 kB / 0.516 GB, free: 13.22 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001705/0.5996, allocations: 59.91 kB / 0.516 GB, free: 13.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.5996, allocations: 4 kB / 0.516 GB, free: 13.16 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003119/0.6, allocations: 47.66 kB / 0.5161 GB, free: 13.11 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002963/0.6003, allocations: 283.7 kB / 0.5163 GB, free: 12.84 MB / 394.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.0002419/0.6005, allocations: 205.5 kB / 0.5165 GB, free: 12.62 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00071/0.6012, allocations: 461.1 kB / 0.517 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.19e-05/0.6013, allocations: 31.62 kB / 0.517 GB, free: 12.13 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.285e-05/0.6014, allocations: 37.08 kB / 0.517 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.6014, allocations: 4 kB / 0.517 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.6014, allocations: 0 / 0.517 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.6014, allocations: 3.938 kB / 0.517 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005363/0.602, allocations: 409.9 kB / 0.5174 GB, free: 11.65 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.602, allocations: 8 kB / 0.5174 GB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001214/0.6021, allocations: 43.97 kB / 0.5175 GB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.6021, allocations: 3.938 kB / 0.5175 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.887e-05/0.6022, allocations: 47.97 kB / 0.5175 GB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.6022, allocations: 0 / 0.5175 GB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.192e-06/0.6022, allocations: 7.938 kB / 0.5175 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007014/0.6029, allocations: 496.4 kB / 0.518 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000261/0.6032, allocations: 188.7 kB / 0.5182 GB, free: 10.83 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.6033, allocations: 15.98 kB / 0.5182 GB, free: 10.82 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002259/0.6035, allocations: 39.88 kB / 0.5182 GB, free: 10.78 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001983/0.6037, allocations: 87.77 kB / 0.5183 GB, free: 10.69 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002709/0.604, allocations: 279.7 kB / 0.5186 GB, free: 10.42 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001862/0.6042, allocations: 193.9 kB / 0.5188 GB, free: 10.23 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6042, allocations: 1.969 kB / 0.5188 GB, free: 10.23 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003922/0.6046, allocations: 72 kB / 0.5188 GB, free: 10.16 MB / 394.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.001123/0.6058, allocations: 1.064 MB / 0.5199 GB, free: 9.066 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007199/0.6065, allocations: 0.4906 MB / 0.5204 GB, free: 8.551 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.6065, allocations: 4.062 kB / 0.5204 GB, free: 8.547 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003591/0.6069, allocations: 322.7 kB / 0.5207 GB, free: 8.207 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00122/0.6081, allocations: 275.7 kB / 0.5209 GB, free: 7.957 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001298/0.6094, allocations: 0.5701 MB / 0.5215 GB, free: 7.344 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004341/0.6099, allocations: 0.8266 MB / 0.5223 GB, free: 6.492 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001396/0.6113, allocations: 0.7457 MB / 0.523 GB, free: 5.781 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008044/0.6121, allocations: 330.8 kB / 0.5233 GB, free: 5.457 MB / 394.7 MB Notification: Performance of SimCode: time 3.416e-06/0.6121, allocations: 0 / 0.5233 GB, free: 5.457 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03429/0.6464, allocations: 12.26 MB / 0.5353 GB, free: 9.051 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001995/0.6467, allocations: 143.6 kB / 0.5355 GB, free: 8.848 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.931/2.578, allocations: 0 / 0.5355 GB, free: 8.848 MB / 410.7 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_FlipFlop_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_FlipFlop.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat does not exist to compare? outputFormat=mat