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.001021/0.001021, allocations: 198.6 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.24/1.24, allocations: 227.2 MB / 245 MB, free: 5.762 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000871/0.0008711, allocations: 107.7 kB / 297.3 MB, free: 5.949 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002189/0.0002189, allocations: 8 kB / 358 MB, free: 9.215 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1781/0.1783, allocations: 51.48 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08996/0.2683, allocations: 84.28 MB / 493.8 MB, free: 6.309 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001816/0.2685, allocations: 71.97 kB / 493.8 MB, free: 6.238 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2177/0.4862, allocations: 43.18 MB / 0.5244 GB, free: 87.46 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.4863, allocations: 0 / 0.5244 GB, free: 87.46 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.319e-05/0.4863, allocations: 8 kB / 0.5244 GB, free: 87.45 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.000966/0.4873, allocations: 0.7423 MB / 0.5252 GB, free: 86.69 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.4873, allocations: 8.031 kB / 0.5252 GB, free: 86.68 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001306/0.4875, allocations: 74.53 kB / 0.5252 GB, free: 86.6 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001182/0.4876, allocations: 47.44 kB / 0.5253 GB, free: 86.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005157/0.4881, allocations: 352.3 kB / 0.5256 GB, free: 86.19 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.551e-05/0.4881, allocations: 24.66 kB / 0.5257 GB, free: 86.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.497e-05/0.4882, allocations: 36 kB / 0.5257 GB, free: 86.13 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007526/0.489, allocations: 489.8 kB / 0.5262 GB, free: 85.65 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.489, allocations: 0 / 0.5262 GB, free: 85.65 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.802e-05/0.4891, allocations: 20 kB / 0.5262 GB, free: 85.63 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.4891, allocations: 8 kB / 0.5262 GB, free: 85.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006281/0.4897, allocations: 390.4 kB / 0.5266 GB, free: 85.24 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001526/0.4912, allocations: 1.076 MB / 0.5276 GB, free: 84.14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000863/0.4921, allocations: 454.6 kB / 0.528 GB, free: 83.69 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.953e-05/0.4922, allocations: 8.281 kB / 0.528 GB, free: 83.68 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000432/0.4926, allocations: 347.9 kB / 0.5284 GB, free: 83.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 2.364e-06/0.4926, allocations: 0 / 0.5284 GB, free: 83.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.001118/0.4938, allocations: 0.7304 MB / 0.5291 GB, free: 82.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.988e-05/0.4938, allocations: 106.8 kB / 0.5292 GB, free: 82.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002023/0.494, allocations: 277.6 kB / 0.5295 GB, free: 82.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.923e-05/0.4941, allocations: 41.69 kB / 0.5295 GB, free: 82.13 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.846e-05/0.4942, allocations: 176.4 kB / 0.5297 GB, free: 81.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.812e-05/0.4942, allocations: 74.66 kB / 0.5297 GB, free: 81.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.529e-05/0.4943, allocations: 12 kB / 0.5297 GB, free: 81.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.119e-05/0.4944, allocations: 346.8 kB / 0.5301 GB, free: 81.54 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000303/0.4947, allocations: 180.7 kB / 0.5302 GB, free: 81.36 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003106/0.495, allocations: 236.3 kB / 0.5305 GB, free: 81.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003369/0.4953, allocations: 253.6 kB / 0.5307 GB, free: 80.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.4953, allocations: 0 / 0.5307 GB, free: 80.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008844/0.4962, allocations: 0.6365 MB / 0.5313 GB, free: 80.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.179e-05/0.4963, allocations: 66.06 kB / 0.5314 GB, free: 80.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.4963, allocations: 4 kB / 0.5314 GB, free: 80.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.4963, allocations: 3.984 kB / 0.5314 GB, free: 80.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.4964, allocations: 55.81 kB / 0.5315 GB, free: 80.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.4964, allocations: 4 kB / 0.5315 GB, free: 80.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002967/0.4967, allocations: 55.75 kB / 0.5315 GB, free: 80.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001924/0.4969, allocations: 283.5 kB / 0.5318 GB, free: 79.75 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002583/0.4972, allocations: 285 kB / 0.5321 GB, free: 79.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.545e-05/0.4973, allocations: 31.62 kB / 0.5321 GB, free: 79.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.707e-05/0.4974, allocations: 38.95 kB / 0.5321 GB, free: 79.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.4974, allocations: 4 kB / 0.5321 GB, free: 79.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.4974, allocations: 0 / 0.5321 GB, free: 79.38 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.4974, allocations: 3.984 kB / 0.5321 GB, free: 79.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004087/0.4978, allocations: 467.9 kB / 0.5326 GB, free: 78.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.4978, allocations: 0 / 0.5326 GB, free: 78.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.754e-05/0.4979, allocations: 51.81 kB / 0.5326 GB, free: 78.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.4979, allocations: 0 / 0.5326 GB, free: 78.83 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.199e-05/0.498, allocations: 51.97 kB / 0.5327 GB, free: 78.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.498, allocations: 0 / 0.5327 GB, free: 78.78 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.498, allocations: 4 kB / 0.5327 GB, free: 78.78 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008145/0.4988, allocations: 0.6022 MB / 0.5333 GB, free: 78.15 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002908/0.4991, allocations: 192.7 kB / 0.5335 GB, free: 77.94 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.137e-05/0.4992, allocations: 20 kB / 0.5335 GB, free: 77.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.4994, allocations: 39.88 kB / 0.5335 GB, free: 77.88 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001697/0.4996, allocations: 87.77 kB / 0.5336 GB, free: 77.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001841/0.4998, allocations: 283.7 kB / 0.5339 GB, free: 77.52 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001332/0.5, allocations: 201.9 kB / 0.5341 GB, free: 77.32 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5, allocations: 0 / 0.5341 GB, free: 77.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003671/0.5003, allocations: 88 kB / 0.5341 GB, free: 77.23 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) * 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 (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.001042/0.5014, allocations: 1.179 MB / 0.5353 GB, free: 76.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000731/0.5021, allocations: 0.5546 MB / 0.5358 GB, free: 75.46 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.5021, allocations: 4.062 kB / 0.5358 GB, free: 75.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004556/0.5026, allocations: 354.3 kB / 0.5362 GB, free: 75.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009095/0.5035, allocations: 280.9 kB / 0.5364 GB, free: 74.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002771/0.5063, allocations: 2.647 MB / 0.539 GB, free: 72.12 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002033/0.5065, allocations: 0.8156 MB / 0.5398 GB, free: 71.27 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00107/0.5076, allocations: 0.747 MB / 0.5406 GB, free: 70.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000707/0.5083, allocations: 334.8 kB / 0.5409 GB, free: 70.2 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.5083, allocations: 0 / 0.5409 GB, free: 70.2 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.021/0.5293, allocations: 12.75 MB / 0.5533 GB, free: 57.41 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001313/0.5295, allocations: 181.1 kB / 0.5535 GB, free: 57.17 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.857/2.386, allocations: 0 / 0.5535 GB, free: 57.17 MB / 378.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