Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_3_2_3_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.001077/0.001077, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.417/1.417, allocations: 205.4 MB / 223.1 MB, free: 9.133 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.0008827/0.0008827, allocations: 88.11 kB / 271.5 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000228/0.0002279, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2163/0.2166, allocations: 47.57 MB / 375.9 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09814/0.3148, allocations: 82.57 MB / 458.5 MB, free: 14.08 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002612/0.3151, allocations: 75.95 kB / 458.6 MB, free: 14.01 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08443/0.3995, allocations: 42.6 MB / 0.4894 GB, free: 3.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.3996, allocations: 0 / 0.4894 GB, free: 3.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.147e-05/0.3996, allocations: 11.94 kB / 0.4894 GB, free: 3.469 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.001392/0.401, allocations: 0.7367 MB / 0.4901 GB, free: 2.668 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/0.4011, allocations: 8.031 kB / 0.4901 GB, free: 2.66 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002094/0.4013, allocations: 70.53 kB / 0.4902 GB, free: 2.582 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001648/0.4015, allocations: 47.44 kB / 0.4903 GB, free: 2.535 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006609/0.4021, allocations: 347.1 kB / 0.4906 GB, free: 2.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.64e-05/0.4022, allocations: 24.66 kB / 0.4906 GB, free: 2.137 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.859e-05/0.4023, allocations: 36 kB / 0.4906 GB, free: 2.102 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009351/0.4033, allocations: 0.4899 MB / 0.4911 GB, free: 1.602 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.4033, allocations: 0 / 0.4911 GB, free: 1.602 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.653e-05/0.4033, allocations: 16 kB / 0.4911 GB, free: 1.586 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.396e-05/0.4034, allocations: 8 kB / 0.4911 GB, free: 1.578 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008106/0.4042, allocations: 394.3 kB / 0.4915 GB, free: 1.195 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002036/0.4062, allocations: 1.085 MB / 0.4926 GB, free: 56 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.208/0.6143, allocations: 450.4 kB / 0.493 GB, free: 104 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001643/0.6145, allocations: 7.562 kB / 0.493 GB, free: 104 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001156/0.6157, allocations: 344.7 kB / 0.4933 GB, free: 104 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 4.158e-06/0.6157, allocations: 1.781 kB / 0.4933 GB, free: 104 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.002581/0.6183, allocations: 0.7225 MB / 0.4941 GB, free: 103.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.419e-05/0.6184, allocations: 115.9 kB / 0.4942 GB, free: 103.8 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004255/0.6188, allocations: 271.7 kB / 0.4944 GB, free: 103.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.018e-05/0.6189, allocations: 42.89 kB / 0.4945 GB, free: 103.6 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001587/0.6191, allocations: 172.9 kB / 0.4946 GB, free: 103.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001258/0.6192, allocations: 76.89 kB / 0.4947 GB, free: 103.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.051e-05/0.6193, allocations: 9.844 kB / 0.4947 GB, free: 103.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.034e-05/0.6194, allocations: 342.3 kB / 0.495 GB, free: 103.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003957/0.6198, allocations: 185.4 kB / 0.4952 GB, free: 103.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004737/0.6202, allocations: 227 kB / 0.4954 GB, free: 103.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000483/0.6207, allocations: 256.8 kB / 0.4957 GB, free: 103.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.6208, allocations: 0 / 0.4957 GB, free: 103.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001265/0.622, allocations: 0.6366 MB / 0.4963 GB, free: 103 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.907e-05/0.6221, allocations: 65.53 kB / 0.4964 GB, free: 102.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.6221, allocations: 1.125 kB / 0.4964 GB, free: 102.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.942e-05/0.6222, allocations: 7.531 kB / 0.4964 GB, free: 102.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001721/0.6223, allocations: 57.33 kB / 0.4964 GB, free: 102.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.341e-05/0.6224, allocations: 2.781 kB / 0.4964 GB, free: 102.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003924/0.6228, allocations: 60.62 kB / 0.4965 GB, free: 102.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003412/0.6231, allocations: 280.3 kB / 0.4967 GB, free: 102.9 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.0006631/0.6238, allocations: 290.3 kB / 0.497 GB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001484/0.6239, allocations: 32.31 kB / 0.4971 GB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.759e-05/0.624, allocations: 34.89 kB / 0.4971 GB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.6241, allocations: 6.359 kB / 0.4971 GB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/0.6241, allocations: 0 / 0.4971 GB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.6241, allocations: 4.906 kB / 0.4971 GB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007261/0.6248, allocations: 474.6 kB / 0.4976 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.6248, allocations: 0 / 0.4976 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001253/0.625, allocations: 49.16 kB / 0.4976 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/0.625, allocations: 1.188 kB / 0.4976 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.41e-05/0.6251, allocations: 45.34 kB / 0.4976 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.643e-06/0.6251, allocations: 3.281 kB / 0.4976 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.6251, allocations: 3.844 kB / 0.4977 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001144/0.6262, allocations: 0.6092 MB / 0.4982 GB, free: 102.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004163/0.6267, allocations: 191.9 kB / 0.4984 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001261/0.6268, allocations: 11.84 kB / 0.4984 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003047/0.6271, allocations: 42.06 kB / 0.4985 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002478/0.6274, allocations: 87.55 kB / 0.4986 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003431/0.6277, allocations: 284.3 kB / 0.4988 GB, free: 102.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002284/0.628, allocations: 204.3 kB / 0.499 GB, free: 102.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.628, allocations: 0 / 0.499 GB, free: 102.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006202/0.6286, allocations: 86.03 kB / 0.4991 GB, free: 102.1 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.001585/0.6302, allocations: 1.181 MB / 0.5003 GB, free: 101.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001006/0.6312, allocations: 0.5458 MB / 0.5008 GB, free: 101.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.6312, allocations: 3.828 kB / 0.5008 GB, free: 101.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004487/0.6317, allocations: 360 kB / 0.5011 GB, free: 101.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001018/0.6327, allocations: 287.3 kB / 0.5014 GB, free: 101.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003264/0.636, allocations: 2.649 MB / 0.504 GB, free: 99.89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002852/0.6363, allocations: 0.819 MB / 0.5048 GB, free: 99.2 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001258/0.6376, allocations: 0.744 MB / 0.5055 GB, free: 98.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007929/0.6384, allocations: 330.1 kB / 0.5058 GB, free: 98.57 MB / 378.7 MB Notification: Performance of SimCode: time 8.02e-07/0.6384, allocations: 0 / 0.5058 GB, free: 98.57 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02699/0.6654, allocations: 12.75 MB / 0.5183 GB, free: 93.82 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001746/0.6656, allocations: 174.7 kB / 0.5185 GB, free: 93.57 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.001/2.666, allocations: 4 kB / 0.5185 GB, free: 93.57 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_FlipFlop_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_FlipFlop.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat does not exist to compare? outputFormat=mat