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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0008441/0.0008442, allocations: 102.2 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008862/0.0008863, allocations: 192.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002459/0.000246, allocations: 8 kB / 306.8 MB, free: 1.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.121, allocations: 51.49 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002413/0.1235, allocations: 1.76 MB / 360.1 MB, free: 12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002612/0.1261, allocations: 1.088 MB / 361.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001332/0.1263, allocations: 0 / 361.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002202/0.1265, allocations: 35.7 kB / 361.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001126/0.1266, allocations: 31.77 kB / 361.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005304/0.1272, allocations: 111.8 kB / 361.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005105/0.1277, allocations: 399.6 kB / 361.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002641/0.128, allocations: 131.8 kB / 361.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008118/0.1288, allocations: 0.6745 MB / 362.5 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002944/0.1291, allocations: 247.4 kB / 362.8 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.975e-05/0.1292, allocations: 12 kB / 362.8 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.7e-05/0.1293, allocations: 8 kB / 362.8 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000182/0.1294, allocations: 123.7 kB / 362.9 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001036/0.1295, allocations: 89.52 kB / 363 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006546/0.1302, allocations: 0.7752 MB / 363.8 MB, free: 8.273 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.725e-06/0.1302, allocations: 4 kB / 363.8 MB, free: 8.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1302, allocations: 0 / 363.8 MB, free: 8.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.782e-06/0.1302, allocations: 0 / 363.8 MB, free: 8.27 MB / 302.1 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.0011/0.1314, allocations: 0.732 MB / 364.5 MB, free: 7.477 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.362e-05/0.1314, allocations: 8.031 kB / 364.5 MB, free: 7.469 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001128/0.1315, allocations: 70.53 kB / 364.6 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001198/0.1317, allocations: 47.52 kB / 364.6 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004998/0.1322, allocations: 342.2 kB / 365 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.042e-05/0.1322, allocations: 32.64 kB / 365 MB, free: 6.941 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.462e-05/0.1323, allocations: 32 kB / 365 MB, free: 6.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009331/0.1332, allocations: 493.7 kB / 365.5 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.1333, allocations: 3.984 kB / 365.5 MB, free: 6.422 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.959e-05/0.1333, allocations: 16 kB / 365.5 MB, free: 6.406 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.1334, allocations: 8 kB / 365.5 MB, free: 6.398 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007185/0.1341, allocations: 386.4 kB / 365.9 MB, free: 6.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001736/0.1358, allocations: 1.109 MB / 367 MB, free: 4.855 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001075/0.1369, allocations: 475.5 kB / 367.5 MB, free: 4.383 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000349/0.1373, allocations: 181.3 kB / 367.7 MB, free: 4.203 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.133e-05/0.1374, allocations: 4.281 kB / 367.7 MB, free: 4.199 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006149/0.138, allocations: 351.2 kB / 368 MB, free: 3.844 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 2.374e-06/0.138, allocations: 0 / 368 MB, free: 3.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.001478/0.1395, allocations: 0.746 MB / 368.7 MB, free: 3.078 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.1396, allocations: 110.8 kB / 368.9 MB, free: 2.945 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00039/0.14, allocations: 310.3 kB / 369.2 MB, free: 2.629 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.666e-05/0.1401, allocations: 41.7 kB / 369.2 MB, free: 2.582 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001541/0.1402, allocations: 168.7 kB / 369.4 MB, free: 2.414 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.1403, allocations: 79.08 kB / 369.4 MB, free: 2.336 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.814e-05/0.1404, allocations: 16 kB / 369.5 MB, free: 2.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001937/0.1406, allocations: 342.8 kB / 369.8 MB, free: 1.977 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003772/0.141, allocations: 180.8 kB / 370 MB, free: 1.801 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000428/0.1414, allocations: 240.5 kB / 370.2 MB, free: 1.547 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004727/0.1419, allocations: 266.7 kB / 370.5 MB, free: 1.277 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.1419, allocations: 0 / 370.5 MB, free: 1.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001162/0.1431, allocations: 0.6604 MB / 371.1 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.343e-05/0.1432, allocations: 59.41 kB / 371.2 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.1432, allocations: 3.938 kB / 371.2 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.142e-05/0.1432, allocations: 4 kB / 371.2 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001708/0.1434, allocations: 59.89 kB / 371.2 MB, free: 472 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.284e-05/0.1434, allocations: 4 kB / 371.3 MB, free: 468 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003357/0.1438, allocations: 55.78 kB / 371.3 MB, free: 412 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002914/0.1441, allocations: 283.7 kB / 371.6 MB, free: 128 kB / 302.1 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[1],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,$PRE.FF.And2.auxiliary_n,FF.RS1.Nor2.x[1],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,$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[2],FF.And3.auxiliary_n,FF.And4.x[1],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.x[1],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,$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.2198/0.3639, allocations: 278.5 kB / 371.9 MB, free: 18.92 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.364, allocations: 31.34 kB / 371.9 MB, free: 18.92 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00011/0.3641, allocations: 38.12 kB / 371.9 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.3642, allocations: 3.594 kB / 371.9 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.3642, allocations: 1.469 kB / 371.9 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.757e-06/0.3642, allocations: 2.734 kB / 371.9 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007175/0.3649, allocations: 487.6 kB / 372.4 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.3649, allocations: 0.5625 kB / 372.4 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001472/0.3651, allocations: 54.61 kB / 372.5 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.204e-06/0.3651, allocations: 1.531 kB / 372.5 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.836e-05/0.3652, allocations: 47.12 kB / 372.5 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.3652, allocations: 0.9688 kB / 372.5 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3652, allocations: 1.5 kB / 372.5 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001224/0.3664, allocations: 0.613 MB / 373.1 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002816/0.3667, allocations: 191.4 kB / 373.3 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.3668, allocations: 17.72 kB / 373.3 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002309/0.3671, allocations: 42.88 kB / 373.4 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002461/0.3673, allocations: 84.66 kB / 373.5 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004099/0.3678, allocations: 282.8 kB / 373.7 MB, free: 18.49 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002296/0.368, allocations: 201.5 kB / 373.9 MB, free: 18.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.368, allocations: 3.438 kB / 373.9 MB, free: 18.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005035/0.3685, allocations: 105.4 kB / 374 MB, free: 18.41 MB / 302.1 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[1],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[1],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.x[1],FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.x[1],FF.And4.auxiliary_n,FF.Not1.auxiliary,CLK.t_i,J.y,K.y) * Number of discrete states: 13 (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,K.y,J.y) * 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.001414/0.3699, allocations: 1.188 MB / 375.2 MB, free: 17.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001043/0.371, allocations: 0.5655 MB / 375.8 MB, free: 17.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.371, allocations: 1.375 kB / 375.8 MB, free: 17.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005048/0.3715, allocations: 368.2 kB / 376.1 MB, free: 17.49 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.3726, allocations: 290.3 kB / 376.4 MB, free: 17.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00385/0.3765, allocations: 2.118 MB / 378.5 MB, free: 16.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004056/0.3769, allocations: 0.8142 MB / 379.4 MB, free: 16.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001729/0.3787, allocations: 0.7485 MB / 380.1 MB, free: 15.56 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008405/0.3795, allocations: 335.2 kB / 380.4 MB, free: 15.33 MB / 302.1 MB Notification: Performance of SimCode: time 1.703e-06/0.3795, allocations: 0 / 380.4 MB, free: 15.33 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02699/0.4065, allocations: 12.69 MB / 393.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001578/0.4067, allocations: 194.1 kB / 393.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.976/2.383, allocations: 4 kB / 393.3 MB, free: 10.51 MB / 302.1 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