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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001013/0.001013, allocations: 86.14 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009451/0.0009453, allocations: 181.7 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.538/1.538, allocations: 223.2 MB / 241.2 MB, free: 5.379 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002746/0.0002746, allocations: 6.75 kB / 300.9 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1187, allocations: 50.43 MB / 351.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.00234/0.1211, allocations: 1.729 MB / 353.1 MB, free: 9.828 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002422/0.1236, allocations: 1.065 MB / 354.1 MB, free: 8.758 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000129/0.1237, allocations: 4 kB / 354.1 MB, free: 8.754 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001708/0.1239, allocations: 31.7 kB / 354.2 MB, free: 8.723 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001071/0.124, allocations: 31.78 kB / 354.2 MB, free: 8.691 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004502/0.1245, allocations: 115.8 kB / 354.3 MB, free: 8.578 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004638/0.1249, allocations: 391.7 kB / 354.7 MB, free: 8.195 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002693/0.1252, allocations: 132.3 kB / 354.8 MB, free: 8.059 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00083/0.1261, allocations: 0.6746 MB / 355.5 MB, free: 7.383 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002979/0.1264, allocations: 251.4 kB / 355.7 MB, free: 7.137 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.603e-05/0.1264, allocations: 8 kB / 355.8 MB, free: 7.129 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.034e-05/0.1265, allocations: 12 kB / 355.8 MB, free: 7.117 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001713/0.1267, allocations: 123.6 kB / 355.9 MB, free: 6.996 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.011e-05/0.1268, allocations: 89.52 kB / 356 MB, free: 6.902 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006422/0.1274, allocations: 0.783 MB / 356.8 MB, free: 6.117 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1275, allocations: 0 / 356.8 MB, free: 6.117 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1275, allocations: 0 / 356.8 MB, free: 6.117 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.1275, allocations: 0 / 356.8 MB, free: 6.117 MB / 286.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.001027/0.1285, allocations: 0.7202 MB / 357.5 MB, free: 5.336 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.1286, allocations: 8.031 kB / 357.5 MB, free: 5.328 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001192/0.1287, allocations: 70.53 kB / 357.6 MB, free: 5.25 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001078/0.1288, allocations: 55.42 kB / 357.6 MB, free: 5.195 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004695/0.1293, allocations: 330.4 kB / 357.9 MB, free: 4.836 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.156e-05/0.1294, allocations: 32.58 kB / 358 MB, free: 4.805 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.259e-05/0.1294, allocations: 36 kB / 358 MB, free: 4.77 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008767/0.1303, allocations: 493.7 kB / 358.5 MB, free: 4.285 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.1304, allocations: 3.984 kB / 358.5 MB, free: 4.281 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.879e-05/0.1304, allocations: 12 kB / 358.5 MB, free: 4.27 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.1304, allocations: 8 kB / 358.5 MB, free: 4.262 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007423/0.1312, allocations: 386.4 kB / 358.9 MB, free: 3.883 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001916/0.1331, allocations: 1.112 MB / 360 MB, free: 2.711 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001145/0.1343, allocations: 479.4 kB / 360.5 MB, free: 2.234 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003547/0.1346, allocations: 181.3 kB / 360.6 MB, free: 2.055 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.64e-05/0.1347, allocations: 8.281 kB / 360.6 MB, free: 2.047 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006098/0.1354, allocations: 355 kB / 361 MB, free: 1.688 MB / 286.1 MB Notification: Performance of pre-optimization done (n=35): time 1.974e-06/0.1354, allocations: 0 / 361 MB, free: 1.688 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.001488/0.1369, allocations: 0.7422 MB / 361.7 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.121e-05/0.137, allocations: 110.8 kB / 361.8 MB, free: 0.793 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003671/0.1373, allocations: 302.4 kB / 362.1 MB, free: 500 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.688e-05/0.1374, allocations: 41.7 kB / 362.2 MB, free: 452 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.1375, allocations: 168.8 kB / 362.3 MB, free: 280 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000127/0.1377, allocations: 90.98 kB / 362.4 MB, free: 188 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.914e-05/0.1377, allocations: 11.94 kB / 362.4 MB, free: 176 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.1379, allocations: 338.8 kB / 362.8 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003978/0.1383, allocations: 188.8 kB / 363 MB, free: 15.65 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004091/0.1387, allocations: 240.5 kB / 363.2 MB, free: 15.4 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00045/0.1392, allocations: 259.2 kB / 363.4 MB, free: 15.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.1392, allocations: 0 / 363.4 MB, free: 15.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001136/0.1404, allocations: 0.6488 MB / 364.1 MB, free: 14.47 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.353e-05/0.1404, allocations: 65.59 kB / 364.2 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.1405, allocations: 0 / 364.2 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.635e-05/0.1405, allocations: 8 kB / 364.2 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001557/0.1406, allocations: 59.83 kB / 364.2 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.1407, allocations: 4 kB / 364.2 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003079/0.141, allocations: 59.78 kB / 364.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002824/0.1413, allocations: 283.7 kB / 364.6 MB, free: 13.99 MB / 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.0003578/0.1416, allocations: 285.1 kB / 364.8 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.404e-05/0.1417, allocations: 39.58 kB / 364.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.382e-05/0.1418, allocations: 34.95 kB / 364.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.1418, allocations: 4 kB / 364.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.1418, allocations: 0 / 364.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.707e-06/0.1418, allocations: 4 kB / 364.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006155/0.1425, allocations: 481.2 kB / 365.4 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.1425, allocations: 0 / 365.4 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/0.1426, allocations: 47.97 kB / 365.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.981e-06/0.1426, allocations: 3.953 kB / 365.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.069e-05/0.1427, allocations: 47.97 kB / 365.5 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.1427, allocations: 0 / 365.5 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.1427, allocations: 4 kB / 365.5 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.1437, allocations: 0.6101 MB / 366.1 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002562/0.144, allocations: 204.6 kB / 366.3 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.962e-05/0.1441, allocations: 19.95 kB / 366.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002157/0.1443, allocations: 43.81 kB / 366.4 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002024/0.1445, allocations: 87.91 kB / 366.5 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002779/0.1448, allocations: 279.7 kB / 366.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002053/0.145, allocations: 198 kB / 366.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1451, allocations: 0 / 366.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004142/0.1455, allocations: 107.8 kB / 367 MB, free: 11.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.001437/0.1469, allocations: 1.188 MB / 368.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001005/0.1479, allocations: 0.5596 MB / 368.8 MB, free: 9.594 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.148, allocations: 4.062 kB / 368.8 MB, free: 9.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000504/0.1485, allocations: 366.5 kB / 369.1 MB, free: 9.207 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001084/0.1496, allocations: 282.3 kB / 369.4 MB, free: 8.941 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003431/0.153, allocations: 2.127 MB / 371.5 MB, free: 6.746 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000399/0.1534, allocations: 0.815 MB / 372.4 MB, free: 5.902 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001461/0.1549, allocations: 0.7471 MB / 373.1 MB, free: 5.156 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000756/0.1557, allocations: 330.8 kB / 373.4 MB, free: 4.832 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1557, allocations: 0 / 373.4 MB, free: 4.832 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02576/0.1814, allocations: 12.69 MB / 386.1 MB, free: 8.109 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001795/0.1817, allocations: 188.4 kB / 386.3 MB, free: 7.867 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.994/2.176, allocations: 0 / 386.3 MB, free: 7.867 MB / 318.1 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