Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001602/0.001602, allocations: 186.3 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.969/1.969, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001083/0.001083, allocations: 97.72 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005089/0.0005089, allocations: 8 kB / 327.1 MB, free: 124 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3371/0.3376, allocations: 47.58 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1361/0.4738, allocations: 82.56 MB / 457.2 MB, free: 14.06 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002873/0.4741, allocations: 75.95 kB / 457.3 MB, free: 13.99 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1489/0.623, allocations: 42.6 MB / 499.9 MB, free: 3.453 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.896e-06/0.6231, allocations: 0 / 499.9 MB, free: 3.453 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.987e-05/0.6231, allocations: 11.94 kB / 499.9 MB, free: 3.441 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.001623/0.6247, allocations: 0.7289 MB / 0.4889 GB, free: 2.648 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.543e-05/0.6248, allocations: 8.031 kB / 0.4889 GB, free: 2.641 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002058/0.625, allocations: 78.53 kB / 0.489 GB, free: 2.555 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002049/0.6253, allocations: 47.44 kB / 0.489 GB, free: 2.508 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007766/0.626, allocations: 347.1 kB / 0.4893 GB, free: 2.133 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.681e-05/0.6261, allocations: 20.66 kB / 0.4894 GB, free: 2.113 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001418/0.6263, allocations: 36 kB / 0.4894 GB, free: 2.078 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00157/0.6278, allocations: 497.7 kB / 0.4899 GB, free: 1.582 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.6279, allocations: 0 / 0.4899 GB, free: 1.582 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001093/0.628, allocations: 24 kB / 0.4899 GB, free: 1.559 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.909e-05/0.628, allocations: 4 kB / 0.4899 GB, free: 1.555 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001384/0.6294, allocations: 390.3 kB / 0.4903 GB, free: 1.176 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002847/0.6323, allocations: 1.081 MB / 0.4913 GB, free: 40 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2693/0.9017, allocations: 456.5 kB / 0.4918 GB, free: 103.6 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001719/0.9019, allocations: 3.812 kB / 0.4918 GB, free: 103.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001093/0.903, allocations: 345.4 kB / 0.4921 GB, free: 103.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 3.446e-06/0.903, allocations: 0.5625 kB / 0.4921 GB, free: 103.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.00257/0.9056, allocations: 0.7253 MB / 0.4928 GB, free: 103.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.351e-05/0.9057, allocations: 109.7 kB / 0.4929 GB, free: 103.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004553/0.9062, allocations: 276.2 kB / 0.4932 GB, free: 103.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.799e-05/0.9063, allocations: 38.58 kB / 0.4932 GB, free: 103.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.9065, allocations: 233.1 kB / 0.4934 GB, free: 103 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001558/0.9066, allocations: 84.17 kB / 0.4935 GB, free: 103 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.9067, allocations: 10.12 kB / 0.4935 GB, free: 103 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.685e-05/0.9068, allocations: 332.1 kB / 0.4938 GB, free: 102.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000663/0.9075, allocations: 178.3 kB / 0.494 GB, free: 102.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007065/0.9082, allocations: 229.5 kB / 0.4942 GB, free: 102.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007497/0.909, allocations: 254.6 kB / 0.4945 GB, free: 102.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.543e-06/0.909, allocations: 1.188 kB / 0.4945 GB, free: 102.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.002021/0.9111, allocations: 0.635 MB / 0.4951 GB, free: 102.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.11e-05/0.9112, allocations: 60.59 kB / 0.4951 GB, free: 102.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.9112, allocations: 3.75 kB / 0.4952 GB, free: 102.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.816e-05/0.9112, allocations: 3.469 kB / 0.4952 GB, free: 102.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002418/0.9115, allocations: 61.83 kB / 0.4952 GB, free: 102.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.407e-05/0.9115, allocations: 3.062 kB / 0.4952 GB, free: 102.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000552/0.9121, allocations: 61.5 kB / 0.4953 GB, free: 102.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004208/0.9125, allocations: 280.4 kB / 0.4955 GB, free: 102.4 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.000581/0.9131, allocations: 288.3 kB / 0.4958 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001716/0.9133, allocations: 27.69 kB / 0.4958 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001043/0.9134, allocations: 34.61 kB / 0.4959 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.298e-06/0.9134, allocations: 3.938 kB / 0.4959 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.9134, allocations: 6.938 kB / 0.4959 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.9135, allocations: 1.219 kB / 0.4959 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008539/0.9143, allocations: 466 kB / 0.4963 GB, free: 102 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/0.9144, allocations: 3.375 kB / 0.4963 GB, free: 102 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001888/0.9145, allocations: 47.95 kB / 0.4964 GB, free: 102 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.408e-06/0.9146, allocations: 1.969 kB / 0.4964 GB, free: 102 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001151/0.9147, allocations: 49.78 kB / 0.4964 GB, free: 102 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.923e-06/0.9147, allocations: 4.844 kB / 0.4964 GB, free: 102 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.9147, allocations: 1.375 kB / 0.4964 GB, free: 102 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001747/0.9165, allocations: 0.6054 MB / 0.497 GB, free: 101.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004121/0.9169, allocations: 194.3 kB / 0.4972 GB, free: 101.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001602/0.9171, allocations: 13.16 kB / 0.4972 GB, free: 101.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00043/0.9175, allocations: 46.69 kB / 0.4973 GB, free: 101.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003251/0.9179, allocations: 82.42 kB / 0.4973 GB, free: 101.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004025/0.9183, allocations: 282.7 kB / 0.4976 GB, free: 101.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003101/0.9186, allocations: 200.5 kB / 0.4978 GB, free: 101.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.9186, allocations: 0 / 0.4978 GB, free: 101.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006817/0.9193, allocations: 93.12 kB / 0.4979 GB, free: 101.6 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.002151/0.9215, allocations: 1.174 MB / 0.499 GB, free: 100.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001636/0.9232, allocations: 0.5535 MB / 0.4996 GB, free: 100.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.9232, allocations: 3.828 kB / 0.4996 GB, free: 100.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008472/0.9241, allocations: 353.3 kB / 0.4999 GB, free: 100.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002049/0.9261, allocations: 295.1 kB / 0.5002 GB, free: 100.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005524/0.9317, allocations: 2.694 MB / 0.5028 GB, free: 99.35 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003605/0.9321, allocations: 0.8169 MB / 0.5036 GB, free: 98.65 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001712/0.9339, allocations: 430.6 kB / 0.504 GB, free: 98.44 MB / 378.7 MB Notification: Performance of SimCode: time 1.523e-06/0.9339, allocations: 3.938 kB / 0.504 GB, free: 98.44 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.733/3.667, allocations: 9.632 MB / 0.5135 GB, free: 96.63 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_FlipFlop_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_FlipFlop.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat does not exist to compare? outputFormat=mat