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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009326/0.0009327, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.476/1.476, allocations: 221.5 MB / 230.3 MB, free: 7.523 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008479/0.0008479, allocations: 90.23 kB / 281.2 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.819e-05/1.821e-05, allocations: 4 kB / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1024, allocations: 50.42 MB / 387.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3659/0.4683, allocations: 82.72 MB / 470.3 MB, free: 12.07 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002612/0.4687, allocations: 68.7 kB / 470.3 MB, free: 12 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08227/0.5509, allocations: 43.13 MB / 0.5014 GB, free: 0.9688 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.551, allocations: 4 kB / 0.5014 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.361e-05/0.551, allocations: 8 kB / 0.5015 GB, free: 0.957 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.001091/0.5521, allocations: 0.69 MB / 0.5021 GB, free: 212 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.5522, allocations: 8.031 kB / 0.5021 GB, free: 204 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001219/0.5523, allocations: 47.44 kB / 0.5022 GB, free: 156 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005515/0.5529, allocations: 351.1 kB / 0.5025 GB, free: 15.76 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.719e-05/0.5529, allocations: 16 kB / 0.5025 GB, free: 15.75 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.887e-05/0.553, allocations: 24 kB / 0.5026 GB, free: 15.72 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005948/0.5536, allocations: 333.4 kB / 0.5029 GB, free: 15.4 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007119/0.5543, allocations: 429.8 kB / 0.5033 GB, free: 14.97 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.5544, allocations: 4 kB / 0.5033 GB, free: 14.97 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.048e-05/0.5544, allocations: 3.984 kB / 0.5033 GB, free: 14.96 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.595e-05/0.5544, allocations: 11.94 kB / 0.5033 GB, free: 14.95 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00168/0.5561, allocations: 1.003 MB / 0.5043 GB, free: 13.91 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007903/0.5569, allocations: 403.3 kB / 0.5047 GB, free: 13.5 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000214/0.5572, allocations: 142.8 kB / 0.5048 GB, free: 13.36 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.303e-05/0.5573, allocations: 4.281 kB / 0.5048 GB, free: 13.36 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004472/0.5577, allocations: 307.3 kB / 0.5051 GB, free: 13.05 MB / 394.7 MB Notification: Performance of pre-optimization done (n=35): time 4.408e-06/0.5577, allocations: 0 / 0.5051 GB, free: 13.05 MB / 394.7 MB Notification: Performance of matching and sorting (n=35): time 0.000799/0.5585, allocations: 468.8 kB / 0.5055 GB, free: 12.58 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.228e-05/0.5586, allocations: 122.7 kB / 0.5057 GB, free: 12.44 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000283/0.5589, allocations: 262 kB / 0.5059 GB, free: 12.18 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.626e-05/0.559, allocations: 37.7 kB / 0.5059 GB, free: 12.14 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001154/0.5591, allocations: 168.7 kB / 0.5061 GB, free: 11.97 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.5592, allocations: 79 kB / 0.5062 GB, free: 11.89 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.842e-05/0.5593, allocations: 0 / 0.5062 GB, free: 11.89 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.5594, allocations: 338.8 kB / 0.5065 GB, free: 11.55 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002341/0.5597, allocations: 152.8 kB / 0.5067 GB, free: 11.4 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002683/0.5599, allocations: 203.7 kB / 0.5068 GB, free: 11.19 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002762/0.5602, allocations: 165.3 kB / 0.507 GB, free: 11.03 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.5602, allocations: 0 / 0.507 GB, free: 11.03 MB / 394.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007953/0.561, allocations: 0.5166 MB / 0.5075 GB, free: 10.51 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.145e-05/0.5611, allocations: 60.5 kB / 0.5076 GB, free: 10.44 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.5611, allocations: 7.953 kB / 0.5076 GB, free: 10.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.5612, allocations: 3.984 kB / 0.5076 GB, free: 10.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001605/0.5613, allocations: 63.91 kB / 0.5076 GB, free: 10.36 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.5613, allocations: 8.031 kB / 0.5076 GB, free: 10.36 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003339/0.5617, allocations: 39.81 kB / 0.5077 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003195/0.562, allocations: 283.7 kB / 0.508 GB, free: 10.04 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.0002645/0.5623, allocations: 205.5 kB / 0.5082 GB, free: 9.816 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006871/0.563, allocations: 461 kB / 0.5086 GB, free: 9.359 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.027e-05/0.5631, allocations: 35.58 kB / 0.5086 GB, free: 9.324 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.155e-05/0.5632, allocations: 31.39 kB / 0.5087 GB, free: 9.293 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.5632, allocations: 4 kB / 0.5087 GB, free: 9.289 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.5632, allocations: 0 / 0.5087 GB, free: 9.289 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.5632, allocations: 0 / 0.5087 GB, free: 9.289 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005217/0.5637, allocations: 405.9 kB / 0.509 GB, free: 8.855 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.5637, allocations: 4 kB / 0.509 GB, free: 8.852 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001126/0.5638, allocations: 51.91 kB / 0.5091 GB, free: 8.801 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.5639, allocations: 4 kB / 0.5091 GB, free: 8.797 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.956e-05/0.5639, allocations: 47.92 kB / 0.5091 GB, free: 8.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.5639, allocations: 0 / 0.5091 GB, free: 8.75 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.189e-06/0.5639, allocations: 4 kB / 0.5092 GB, free: 8.746 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007347/0.5647, allocations: 0.5005 MB / 0.5096 GB, free: 8.227 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002543/0.565, allocations: 188.7 kB / 0.5098 GB, free: 8.023 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.5651, allocations: 12 kB / 0.5098 GB, free: 8.012 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002396/0.5653, allocations: 39.92 kB / 0.5099 GB, free: 7.973 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001923/0.5655, allocations: 83.91 kB / 0.5099 GB, free: 7.891 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002578/0.5658, allocations: 283.7 kB / 0.5102 GB, free: 7.613 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001772/0.566, allocations: 190 kB / 0.5104 GB, free: 7.426 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.566, allocations: 0 / 0.5104 GB, free: 7.426 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004118/0.5664, allocations: 72 kB / 0.5105 GB, free: 7.355 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.001101/0.5675, allocations: 1.059 MB / 0.5115 GB, free: 6.27 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007173/0.5682, allocations: 497.7 kB / 0.512 GB, free: 5.762 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.5682, allocations: 0 / 0.512 GB, free: 5.762 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003711/0.5686, allocations: 334.5 kB / 0.5123 GB, free: 5.41 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001226/0.5699, allocations: 284.2 kB / 0.5126 GB, free: 5.141 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001269/0.5711, allocations: 0.5777 MB / 0.5131 GB, free: 4.52 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003775/0.5715, allocations: 0.815 MB / 0.5139 GB, free: 3.68 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001415/0.5729, allocations: 0.7473 MB / 0.5147 GB, free: 2.934 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007915/0.5738, allocations: 334.8 kB / 0.515 GB, free: 2.605 MB / 394.7 MB Notification: Performance of SimCode: time 2.745e-06/0.5738, allocations: 0 / 0.515 GB, free: 2.605 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03629/0.6101, allocations: 12.26 MB / 0.527 GB, free: 6.172 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002334/0.6104, allocations: 131.7 kB / 0.5271 GB, free: 5.98 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.902/2.512, allocations: 0 / 0.5271 GB, free: 5.98 MB / 410.7 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_FlipFlop_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_FlipFlop.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat does not exist to compare? outputFormat=mat