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.001618/0.001618, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.103/2.103, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001129/0.001129, allocations: 82.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.747e-05/3.761e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09797/0.09805, allocations: 47.58 MB / 369.2 MB, free: 2.098 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4089/0.507, allocations: 82.47 MB / 451.7 MB, free: 10.34 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000265/0.5074, allocations: 67.27 kB / 451.7 MB, free: 10.3 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1543/0.6617, allocations: 42.91 MB / 494.6 MB, free: 1.652 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.6618, allocations: 0 / 494.6 MB, free: 1.652 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.147e-05/0.6618, allocations: 12 kB / 494.6 MB, free: 1.641 MB / 362.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.001457/0.6633, allocations: 0.6896 MB / 495.3 MB, free: 0.8906 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.6633, allocations: 8.031 kB / 495.3 MB, free: 0.8828 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001878/0.6635, allocations: 78.53 kB / 495.4 MB, free: 0.7969 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001761/0.6637, allocations: 47.44 kB / 495.5 MB, free: 0.75 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007925/0.6645, allocations: 339.2 kB / 495.8 MB, free: 380 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.207e-05/0.6646, allocations: 32.77 kB / 495.8 MB, free: 348 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001487/0.6648, allocations: 36 kB / 495.9 MB, free: 312 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/0.6661, allocations: 471.5 kB / 496.3 MB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.6662, allocations: 0 / 496.3 MB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001016/0.6663, allocations: 16 kB / 496.3 MB, free: 15.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.713e-05/0.6663, allocations: 8 kB / 496.4 MB, free: 15.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001125/0.6674, allocations: 354.9 kB / 496.7 MB, free: 15.46 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002922/0.6704, allocations: 1.082 MB / 497.8 MB, free: 14.33 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001566/0.672, allocations: 407.6 kB / 498.2 MB, free: 13.92 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004993/0.6725, allocations: 161.4 kB / 498.3 MB, free: 13.76 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001338/0.6727, allocations: 8.219 kB / 498.3 MB, free: 13.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007776/0.6735, allocations: 319.2 kB / 498.7 MB, free: 13.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 2.975e-06/0.6735, allocations: 0 / 498.7 MB, free: 13.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.001587/0.6751, allocations: 0.5276 MB / 499.2 MB, free: 12.88 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.518e-05/0.6752, allocations: 118.7 kB / 499.3 MB, free: 12.74 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005135/0.6758, allocations: 282.8 kB / 499.6 MB, free: 12.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001265/0.6759, allocations: 37.7 kB / 499.6 MB, free: 12.42 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001769/0.6761, allocations: 223.2 kB / 499.8 MB, free: 12.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000167/0.6763, allocations: 83.05 kB / 499.9 MB, free: 12.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.937e-05/0.6764, allocations: 8 kB / 499.9 MB, free: 12.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.6765, allocations: 330.8 kB / 0.4885 GB, free: 11.78 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005089/0.6771, allocations: 160.8 kB / 0.4887 GB, free: 11.62 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005669/0.6776, allocations: 220.5 kB / 0.4889 GB, free: 11.39 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006102/0.6783, allocations: 232.2 kB / 0.4891 GB, free: 11.16 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.6783, allocations: 0 / 0.4891 GB, free: 11.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001647/0.6799, allocations: 0.5981 MB / 0.4897 GB, free: 10.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.613e-05/0.68, allocations: 59.41 kB / 0.4897 GB, free: 10.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/0.6801, allocations: 8 kB / 0.4898 GB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.361e-05/0.6801, allocations: 4 kB / 0.4898 GB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002713/0.6804, allocations: 59.92 kB / 0.4898 GB, free: 10.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.449e-05/0.6804, allocations: 4 kB / 0.4898 GB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005678/0.681, allocations: 51.81 kB / 0.4899 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004343/0.6814, allocations: 283.7 kB / 0.4901 GB, free: 10.07 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 () * 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.0003729/0.6818, allocations: 208.3 kB / 0.4903 GB, free: 9.844 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001453/0.682, allocations: 31.62 kB / 0.4904 GB, free: 9.812 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001316/0.6821, allocations: 39.08 kB / 0.4904 GB, free: 9.777 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.116e-06/0.6822, allocations: 4 kB / 0.4904 GB, free: 9.773 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.6822, allocations: 0 / 0.4904 GB, free: 9.773 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.6822, allocations: 7.984 kB / 0.4904 GB, free: 9.766 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000976/0.6832, allocations: 461.3 kB / 0.4909 GB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.6832, allocations: 0 / 0.4909 GB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002065/0.6834, allocations: 55.91 kB / 0.4909 GB, free: 9.211 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.436e-06/0.6834, allocations: 0 / 0.4909 GB, free: 9.211 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001254/0.6836, allocations: 51.97 kB / 0.491 GB, free: 9.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.56e-06/0.6836, allocations: 0 / 0.491 GB, free: 9.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.6836, allocations: 0 / 0.491 GB, free: 9.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001531/0.6851, allocations: 0.5739 MB / 0.4915 GB, free: 8.555 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004946/0.6857, allocations: 192.7 kB / 0.4917 GB, free: 8.348 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001546/0.6858, allocations: 12 kB / 0.4917 GB, free: 8.336 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004169/0.6863, allocations: 43.88 kB / 0.4918 GB, free: 8.293 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000323/0.6866, allocations: 83.91 kB / 0.4918 GB, free: 8.211 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004307/0.687, allocations: 283.7 kB / 0.4921 GB, free: 7.934 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003544/0.6874, allocations: 203.1 kB / 0.4923 GB, free: 7.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6874, allocations: 0 / 0.4923 GB, free: 7.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006455/0.6881, allocations: 88 kB / 0.4924 GB, free: 7.645 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) * 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.002/0.6901, allocations: 1.141 MB / 0.4935 GB, free: 6.457 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001418/0.6915, allocations: 0.5129 MB / 0.494 GB, free: 5.922 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.6916, allocations: 3.938 kB / 0.494 GB, free: 5.918 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007089/0.6923, allocations: 338.3 kB / 0.4943 GB, free: 5.562 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002068/0.6944, allocations: 294 kB / 0.4946 GB, free: 5.277 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002338/0.6967, allocations: 0.6627 MB / 0.4952 GB, free: 4.574 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000549/0.6973, allocations: 0.8111 MB / 0.496 GB, free: 3.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001888/0.6993, allocations: 438.5 kB / 0.4965 GB, free: 3.305 MB / 378.7 MB Notification: Performance of SimCode: time 4.208e-06/0.6993, allocations: 4 kB / 0.4965 GB, free: 3.301 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.781/3.48, allocations: 9.67 MB / 0.5059 GB, free: 9.266 MB / 394.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