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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 174.7 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 221.3 MB / 235.5 MB, free: 2.922 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000855/0.000855, allocations: 82.94 kB / 286.5 MB, free: 220 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.624e-05/2.627e-05, allocations: 4 kB / 343.9 MB, free: 4.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1098, allocations: 50.41 MB / 394.3 MB, free: 1.754 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3374/0.4473, allocations: 83.4 MB / 477.7 MB, free: 4.051 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001801/0.4475, allocations: 71.95 kB / 477.8 MB, free: 3.98 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07972/0.5272, allocations: 43.42 MB / 0.509 GB, free: 8.648 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.5272, allocations: 0 / 0.509 GB, free: 8.648 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.439e-05/0.5273, allocations: 8 kB / 0.509 GB, free: 8.641 MB / 394.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.001014/0.5283, allocations: 0.6975 MB / 0.5097 GB, free: 7.879 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.5284, allocations: 8.031 kB / 0.5097 GB, free: 7.871 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001114/0.5285, allocations: 70.53 kB / 0.5098 GB, free: 7.793 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001196/0.5286, allocations: 51.42 kB / 0.5098 GB, free: 7.742 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006526/0.5293, allocations: 351.2 kB / 0.5102 GB, free: 7.355 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.738e-05/0.5293, allocations: 20.78 kB / 0.5102 GB, free: 7.336 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.325e-05/0.5294, allocations: 36 kB / 0.5102 GB, free: 7.301 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008413/0.5303, allocations: 475.5 kB / 0.5107 GB, free: 6.828 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.5303, allocations: 7.953 kB / 0.5107 GB, free: 6.82 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.628e-05/0.5304, allocations: 16 kB / 0.5107 GB, free: 6.805 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/0.5304, allocations: 8 kB / 0.5107 GB, free: 6.797 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005925/0.531, allocations: 358.9 kB / 0.511 GB, free: 6.445 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001653/0.5326, allocations: 1.066 MB / 0.5121 GB, free: 5.324 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008715/0.5335, allocations: 411.6 kB / 0.5125 GB, free: 4.914 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002631/0.5338, allocations: 165.3 kB / 0.5126 GB, free: 4.75 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.212e-05/0.5339, allocations: 8.266 kB / 0.5126 GB, free: 4.742 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004577/0.5344, allocations: 319.2 kB / 0.5129 GB, free: 4.418 MB / 394.7 MB Notification: Performance of pre-optimization done (n=35): time 1.934e-06/0.5344, allocations: 0 / 0.5129 GB, free: 4.418 MB / 394.7 MB Notification: Performance of matching and sorting (n=35): time 0.0009346/0.5353, allocations: 0.5314 MB / 0.5135 GB, free: 3.867 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.234e-05/0.5354, allocations: 110.8 kB / 0.5136 GB, free: 3.734 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002702/0.5357, allocations: 274.8 kB / 0.5138 GB, free: 3.465 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.347e-05/0.5357, allocations: 45.64 kB / 0.5139 GB, free: 3.414 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.5359, allocations: 172.7 kB / 0.514 GB, free: 3.238 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.849e-05/0.536, allocations: 79.06 kB / 0.5141 GB, free: 3.16 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.821e-05/0.536, allocations: 8 kB / 0.5141 GB, free: 3.152 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.5361, allocations: 346.7 kB / 0.5145 GB, free: 2.805 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002852/0.5364, allocations: 160.8 kB / 0.5146 GB, free: 2.648 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003161/0.5368, allocations: 208.6 kB / 0.5148 GB, free: 2.434 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000365/0.5371, allocations: 239.8 kB / 0.515 GB, free: 2.188 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.5371, allocations: 0 / 0.515 GB, free: 2.188 MB / 394.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009131/0.5381, allocations: 0.5966 MB / 0.5156 GB, free: 1.574 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.137e-05/0.5381, allocations: 68.64 kB / 0.5157 GB, free: 1.496 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.5381, allocations: 4 kB / 0.5157 GB, free: 1.492 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.5382, allocations: 0 / 0.5157 GB, free: 1.492 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001476/0.5383, allocations: 55.91 kB / 0.5157 GB, free: 1.438 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.5383, allocations: 4.156 kB / 0.5157 GB, free: 1.434 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002956/0.5386, allocations: 59.83 kB / 0.5158 GB, free: 1.375 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002631/0.5389, allocations: 283.7 kB / 0.5161 GB, free: 1.098 MB / 394.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.0002152/0.5391, allocations: 212.2 kB / 0.5163 GB, free: 0.8711 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.053e-05/0.5392, allocations: 39.58 kB / 0.5163 GB, free: 0.832 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.499e-05/0.5393, allocations: 39.08 kB / 0.5164 GB, free: 0.7969 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.5393, allocations: 4 kB / 0.5164 GB, free: 0.793 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.5393, allocations: 0 / 0.5164 GB, free: 0.793 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.5393, allocations: 0 / 0.5164 GB, free: 0.793 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000505/0.5398, allocations: 465.3 kB / 0.5168 GB, free: 296 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.5398, allocations: 0 / 0.5168 GB, free: 296 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001048/0.54, allocations: 55.91 kB / 0.5169 GB, free: 240 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.54, allocations: 0 / 0.5169 GB, free: 240 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.881e-05/0.54, allocations: 51.92 kB / 0.5169 GB, free: 188 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.5401, allocations: 0 / 0.5169 GB, free: 188 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.5401, allocations: 7.938 kB / 0.5169 GB, free: 180 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008699/0.5409, allocations: 0.5663 MB / 0.5175 GB, free: 15.58 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002873/0.5412, allocations: 192.7 kB / 0.5176 GB, free: 15.37 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.863e-05/0.5413, allocations: 12 kB / 0.5177 GB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002228/0.5416, allocations: 43.83 kB / 0.5177 GB, free: 15.32 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000196/0.5418, allocations: 87.91 kB / 0.5178 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002499/0.542, allocations: 283.7 kB / 0.5181 GB, free: 14.95 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001744/0.5422, allocations: 195.1 kB / 0.5182 GB, free: 14.76 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5422, allocations: 0 / 0.5182 GB, free: 14.76 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003559/0.5426, allocations: 88 kB / 0.5183 GB, free: 14.67 MB / 410.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.001182/0.5438, allocations: 1.146 MB / 0.5194 GB, free: 13.49 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007444/0.5445, allocations: 0.5118 MB / 0.5199 GB, free: 12.95 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.5445, allocations: 0 / 0.5199 GB, free: 12.95 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004289/0.545, allocations: 342.5 kB / 0.5203 GB, free: 12.59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001149/0.5461, allocations: 279.6 kB / 0.5205 GB, free: 12.33 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.5474, allocations: 0.614 MB / 0.5211 GB, free: 11.68 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003877/0.5478, allocations: 0.8188 MB / 0.5219 GB, free: 10.83 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001282/0.5491, allocations: 0.7393 MB / 0.5227 GB, free: 10.09 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000754/0.5498, allocations: 334.8 kB / 0.523 GB, free: 9.762 MB / 410.7 MB Notification: Performance of SimCode: time 1.993e-06/0.5498, allocations: 4 kB / 0.523 GB, free: 9.758 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02524/0.5751, allocations: 12.76 MB / 0.5354 GB, free: 12.89 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001504/0.5753, allocations: 151.3 kB / 0.5356 GB, free: 12.67 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.815/2.39, allocations: 8 kB / 0.5356 GB, free: 12.66 MB / 426.7 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