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.001129/0.001129, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000924/0.0009241, allocations: 82.16 kB / 292.1 MB, free: 5.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.72e-05/2.721e-05, allocations: 0 / 350.6 MB, free: 2.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1061, allocations: 51.48 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3801/0.4863, allocations: 84.21 MB / 486.3 MB, free: 5.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001939/0.4865, allocations: 75.11 kB / 486.4 MB, free: 5.191 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1637/0.6502, allocations: 43.47 MB / 0.5175 GB, free: 11.6 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.6502, allocations: 1.594 kB / 0.5175 GB, free: 11.6 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.923e-05/0.6503, allocations: 12 kB / 0.5175 GB, free: 11.59 MB / 394.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.001624/0.6519, allocations: 0.7014 MB / 0.5182 GB, free: 10.83 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.652, allocations: 8.031 kB / 0.5182 GB, free: 10.82 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002213/0.6522, allocations: 70.53 kB / 0.5182 GB, free: 10.74 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002229/0.6525, allocations: 47.53 kB / 0.5183 GB, free: 10.7 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007636/0.6532, allocations: 355.1 kB / 0.5186 GB, free: 10.31 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.326e-05/0.6533, allocations: 28.78 kB / 0.5186 GB, free: 10.28 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001453/0.6535, allocations: 35.94 kB / 0.5187 GB, free: 10.25 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/0.6546, allocations: 479.5 kB / 0.5191 GB, free: 9.77 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.6547, allocations: 0 / 0.5191 GB, free: 9.77 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.309e-05/0.6548, allocations: 12 kB / 0.5191 GB, free: 9.758 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/0.6548, allocations: 8 kB / 0.5191 GB, free: 9.75 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009196/0.6557, allocations: 351 kB / 0.5195 GB, free: 9.406 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002029/0.6578, allocations: 1.074 MB / 0.5205 GB, free: 8.277 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009183/0.6587, allocations: 406 kB / 0.5209 GB, free: 7.875 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003051/0.659, allocations: 161.4 kB / 0.5211 GB, free: 7.715 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.159e-05/0.6591, allocations: 4.281 kB / 0.5211 GB, free: 7.711 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005183/0.6596, allocations: 323.2 kB / 0.5214 GB, free: 7.383 MB / 394.7 MB Notification: Performance of pre-optimization done (n=35): time 2.735e-06/0.6596, allocations: 0 / 0.5214 GB, free: 7.383 MB / 394.7 MB Notification: Performance of matching and sorting (n=35): time 0.001039/0.6607, allocations: 0.5333 MB / 0.5219 GB, free: 6.832 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.31e-05/0.6608, allocations: 110.8 kB / 0.522 GB, free: 6.699 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003036/0.6611, allocations: 278.8 kB / 0.5223 GB, free: 6.426 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.416e-05/0.6611, allocations: 37.7 kB / 0.5223 GB, free: 6.383 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/0.6613, allocations: 172.7 kB / 0.5225 GB, free: 6.207 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/0.6614, allocations: 82.98 kB / 0.5226 GB, free: 6.125 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.641e-05/0.6614, allocations: 8 kB / 0.5226 GB, free: 6.117 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.6616, allocations: 342.8 kB / 0.5229 GB, free: 5.773 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002907/0.6619, allocations: 156.8 kB / 0.523 GB, free: 5.621 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003268/0.6622, allocations: 220.6 kB / 0.5233 GB, free: 5.387 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003692/0.6626, allocations: 235.7 kB / 0.5235 GB, free: 5.148 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.6626, allocations: 0 / 0.5235 GB, free: 5.148 MB / 394.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001037/0.6637, allocations: 0.6028 MB / 0.5241 GB, free: 4.527 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.732e-05/0.6637, allocations: 59.41 kB / 0.5241 GB, free: 4.457 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.6638, allocations: 0 / 0.5241 GB, free: 4.457 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.386e-05/0.6638, allocations: 4 kB / 0.5241 GB, free: 4.453 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001689/0.664, allocations: 59.89 kB / 0.5242 GB, free: 4.395 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.855e-05/0.664, allocations: 11.97 kB / 0.5242 GB, free: 4.383 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003772/0.6644, allocations: 51.72 kB / 0.5242 GB, free: 4.332 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003298/0.6647, allocations: 283.7 kB / 0.5245 GB, free: 4.055 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.0002598/0.665, allocations: 213.7 kB / 0.5247 GB, free: 3.828 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.858e-05/0.6651, allocations: 35.64 kB / 0.5248 GB, free: 3.793 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.636e-05/0.6652, allocations: 35.09 kB / 0.5248 GB, free: 3.762 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/0.6652, allocations: 7.984 kB / 0.5248 GB, free: 3.754 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.6652, allocations: 0 / 0.5248 GB, free: 3.754 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.6652, allocations: 0 / 0.5248 GB, free: 3.754 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006249/0.6658, allocations: 469.2 kB / 0.5252 GB, free: 3.246 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.6658, allocations: 0 / 0.5252 GB, free: 3.246 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001088/0.666, allocations: 55.97 kB / 0.5253 GB, free: 3.191 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.113e-06/0.666, allocations: 0 / 0.5253 GB, free: 3.191 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.704e-05/0.6661, allocations: 55.84 kB / 0.5253 GB, free: 3.137 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.6661, allocations: 4 kB / 0.5254 GB, free: 3.133 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.6661, allocations: 0 / 0.5254 GB, free: 3.133 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009143/0.667, allocations: 0.5634 MB / 0.5259 GB, free: 2.539 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002831/0.6673, allocations: 192.7 kB / 0.5261 GB, free: 2.332 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.157e-05/0.6674, allocations: 17.22 kB / 0.5261 GB, free: 2.316 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002348/0.6676, allocations: 47.8 kB / 0.5261 GB, free: 2.27 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002146/0.6679, allocations: 79.92 kB / 0.5262 GB, free: 2.191 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002866/0.6682, allocations: 283.7 kB / 0.5265 GB, free: 1.914 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002285/0.6684, allocations: 203.1 kB / 0.5267 GB, free: 1.711 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6684, allocations: 0 / 0.5267 GB, free: 1.711 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003827/0.6688, allocations: 84 kB / 0.5268 GB, free: 1.629 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.001261/0.6701, allocations: 1.145 MB / 0.5279 GB, free: 456 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008008/0.6709, allocations: 0.5141 MB / 0.5284 GB, free: 15.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.6709, allocations: 0 / 0.5284 GB, free: 15.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004256/0.6713, allocations: 334.6 kB / 0.5287 GB, free: 15.55 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00118/0.6725, allocations: 276.3 kB / 0.529 GB, free: 15.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001291/0.6738, allocations: 0.6108 MB / 0.5296 GB, free: 14.66 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004581/0.6743, allocations: 0.8189 MB / 0.5304 GB, free: 13.81 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00138/0.6757, allocations: 0.7505 MB / 0.5311 GB, free: 13.08 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007987/0.6765, allocations: 334.7 kB / 0.5314 GB, free: 12.75 MB / 410.7 MB Notification: Performance of SimCode: time 2.71e-07/0.6765, allocations: 0 / 0.5314 GB, free: 12.75 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02574/0.7022, allocations: 12.77 MB / 0.5439 GB, free: 15.96 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002201/0.7025, allocations: 151.1 kB / 0.544 GB, free: 15.73 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.962/2.664, allocations: 0 / 0.544 GB, free: 15.73 MB / 426.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