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.001065/0.001065, allocations: 179.9 kB / 16.38 MB, free: 5.766 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.375/1.375, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008444/0.0008445, allocations: 100.1 kB / 291.5 MB, free: 10.88 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000278/0.0002781, allocations: 8 kB / 351.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2476/0.2479, allocations: 50.4 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09831/0.3462, allocations: 83.46 MB / 485 MB, free: 12.97 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001886/0.3465, allocations: 71.95 kB / 485.1 MB, free: 12.9 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2624/0.6089, allocations: 43.13 MB / 0.5159 GB, free: 96.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.6089, allocations: 0 / 0.5159 GB, free: 96.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.317e-05/0.6089, allocations: 10.81 kB / 0.5159 GB, free: 96.38 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.0009311/0.6099, allocations: 0.7361 MB / 0.5166 GB, free: 95.78 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.6099, allocations: 10.09 kB / 0.5166 GB, free: 95.78 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.935e-05/0.61, allocations: 72.62 kB / 0.5167 GB, free: 95.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001017/0.6102, allocations: 51 kB / 0.5167 GB, free: 95.69 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005071/0.6107, allocations: 345.3 kB / 0.517 GB, free: 95.4 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.812e-05/0.6107, allocations: 24.22 kB / 0.5171 GB, free: 95.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.116e-05/0.6108, allocations: 33.09 kB / 0.5171 GB, free: 95.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007805/0.6116, allocations: 499.6 kB / 0.5176 GB, free: 95.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.6116, allocations: 3.938 kB / 0.5176 GB, free: 95.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.307e-05/0.6117, allocations: 18.95 kB / 0.5176 GB, free: 95.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-06/0.6117, allocations: 10.47 kB / 0.5176 GB, free: 95.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006616/0.6123, allocations: 386.2 kB / 0.518 GB, free: 94.95 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001534/0.6139, allocations: 1.083 MB / 0.519 GB, free: 94.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008795/0.6148, allocations: 457.5 kB / 0.5195 GB, free: 93.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.06e-05/0.6148, allocations: 3.719 kB / 0.5195 GB, free: 93.64 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000445/0.6153, allocations: 335.3 kB / 0.5198 GB, free: 93.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 2.134e-06/0.6153, allocations: 0 / 0.5198 GB, free: 93.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.001141/0.6165, allocations: 0.7272 MB / 0.5205 GB, free: 92.56 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.856e-05/0.6165, allocations: 110.8 kB / 0.5206 GB, free: 92.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002075/0.6167, allocations: 281.5 kB / 0.5209 GB, free: 92.15 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.879e-05/0.6168, allocations: 41.7 kB / 0.5209 GB, free: 92.1 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.242e-05/0.6169, allocations: 168.5 kB / 0.5211 GB, free: 91.94 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.657e-05/0.6169, allocations: 78.16 kB / 0.5211 GB, free: 91.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.504e-05/0.617, allocations: 15.98 kB / 0.5212 GB, free: 91.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.928e-05/0.6171, allocations: 338.8 kB / 0.5215 GB, free: 91.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003004/0.6174, allocations: 176.8 kB / 0.5217 GB, free: 91.35 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003349/0.6177, allocations: 232.5 kB / 0.5219 GB, free: 91.11 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003346/0.6181, allocations: 258.2 kB / 0.5221 GB, free: 90.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.6181, allocations: 4 kB / 0.5221 GB, free: 90.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008744/0.6189, allocations: 0.6319 MB / 0.5227 GB, free: 90.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.867e-05/0.619, allocations: 67.39 kB / 0.5228 GB, free: 90.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.619, allocations: 0 / 0.5228 GB, free: 90.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.619, allocations: 8.031 kB / 0.5228 GB, free: 90.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000123/0.6192, allocations: 62.06 kB / 0.5229 GB, free: 90.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.044e-06/0.6192, allocations: 160 / 0.5229 GB, free: 90.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002765/0.6195, allocations: 51 kB / 0.5229 GB, free: 90.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000188/0.6197, allocations: 287.3 kB / 0.5232 GB, free: 89.74 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.0002652/0.6199, allocations: 284.8 kB / 0.5235 GB, free: 89.44 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.466e-05/0.62, allocations: 35.58 kB / 0.5235 GB, free: 89.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.994e-05/0.6201, allocations: 34.95 kB / 0.5235 GB, free: 89.37 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.197e-06/0.6201, allocations: 4 kB / 0.5235 GB, free: 89.36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.6201, allocations: 0 / 0.5235 GB, free: 89.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.89e-06/0.6201, allocations: 3.984 kB / 0.5235 GB, free: 89.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004072/0.6205, allocations: 471.4 kB / 0.524 GB, free: 88.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.6205, allocations: 3.75 kB / 0.524 GB, free: 88.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.552e-05/0.6206, allocations: 43.97 kB / 0.524 GB, free: 88.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.6206, allocations: 11.95 kB / 0.5241 GB, free: 88.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.275e-05/0.6207, allocations: 51.97 kB / 0.5241 GB, free: 88.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.6207, allocations: 0 / 0.5241 GB, free: 88.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.6207, allocations: 3.844 kB / 0.5241 GB, free: 88.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008/0.6215, allocations: 0.6022 MB / 0.5247 GB, free: 88.12 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002911/0.6218, allocations: 192.7 kB / 0.5249 GB, free: 87.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.389e-05/0.6219, allocations: 15.95 kB / 0.5249 GB, free: 87.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002011/0.6221, allocations: 39.88 kB / 0.5249 GB, free: 87.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001874/0.6223, allocations: 87.56 kB / 0.525 GB, free: 87.78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001734/0.6225, allocations: 283.7 kB / 0.5253 GB, free: 87.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000135/0.6226, allocations: 205.9 kB / 0.5255 GB, free: 87.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6226, allocations: 4 kB / 0.5255 GB, free: 87.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003501/0.623, allocations: 88 kB / 0.5256 GB, free: 87.21 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.001034/0.624, allocations: 1.165 MB / 0.5267 GB, free: 86.01 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007352/0.6248, allocations: 0.5518 MB / 0.5272 GB, free: 85.44 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.6248, allocations: 0 / 0.5272 GB, free: 85.44 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003828/0.6252, allocations: 361 kB / 0.5276 GB, free: 85.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009191/0.6261, allocations: 274.6 kB / 0.5279 GB, free: 84.81 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002764/0.6289, allocations: 2.653 MB / 0.5304 GB, free: 82.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/0.6292, allocations: 0.8194 MB / 0.5312 GB, free: 81.26 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001271/0.6305, allocations: 0.7431 MB / 0.532 GB, free: 80.51 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000714/0.6312, allocations: 330.8 kB / 0.5323 GB, free: 80.19 MB / 378.7 MB Notification: Performance of SimCode: time 9.71e-07/0.6312, allocations: 4 kB / 0.5323 GB, free: 80.18 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02226/0.6535, allocations: 12.75 MB / 0.5447 GB, free: 67.45 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001634/0.6537, allocations: 174.8 kB / 0.5449 GB, free: 67.2 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.146/2.799, allocations: 3.938 kB / 0.5449 GB, free: 67.2 MB / 378.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