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.001102/0.001102, allocations: 177.7 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.459/1.459, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008601/0.0008602, allocations: 94.22 kB / 262.5 MB, free: 1.609 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.456e-05/1.449e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07726/0.07728, allocations: 47.6 MB / 363.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.289/0.3663, allocations: 82.07 MB / 445.2 MB, free: 13.28 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001708/0.3665, allocations: 62.16 kB / 445.3 MB, free: 13.25 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07712/0.4436, allocations: 42.61 MB / 487.9 MB, free: 8.914 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4437, allocations: 0 / 487.9 MB, free: 8.914 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.337e-05/0.4437, allocations: 12 kB / 487.9 MB, free: 8.902 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.0009417/0.4447, allocations: 0.6938 MB / 488.6 MB, free: 8.152 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.4447, allocations: 12.03 kB / 488.6 MB, free: 8.141 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000114/0.4448, allocations: 47.44 kB / 488.7 MB, free: 8.094 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004676/0.4453, allocations: 343.3 kB / 489 MB, free: 7.715 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.122e-05/0.4454, allocations: 19.95 kB / 489 MB, free: 7.695 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.138e-05/0.4454, allocations: 20 kB / 489 MB, free: 7.676 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005524/0.446, allocations: 333.4 kB / 489.4 MB, free: 7.348 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006577/0.4467, allocations: 429.9 kB / 489.8 MB, free: 6.922 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.4467, allocations: 0 / 489.8 MB, free: 6.922 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.717e-05/0.4467, allocations: 3.938 kB / 489.8 MB, free: 6.918 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.4468, allocations: 8 kB / 489.8 MB, free: 6.91 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001571/0.4483, allocations: 1.015 MB / 490.8 MB, free: 5.852 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007485/0.4491, allocations: 387.3 kB / 491.2 MB, free: 5.465 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002136/0.4493, allocations: 145.4 kB / 491.3 MB, free: 5.32 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.656e-05/0.4494, allocations: 8.219 kB / 491.3 MB, free: 5.312 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004287/0.4498, allocations: 311.3 kB / 491.6 MB, free: 4.996 MB / 362.7 MB Notification: Performance of pre-optimization done (n=35): time 1.973e-06/0.4499, allocations: 4 kB / 491.7 MB, free: 4.992 MB / 362.7 MB Notification: Performance of matching and sorting (n=35): time 0.0007497/0.4506, allocations: 468.7 kB / 492.1 MB, free: 4.527 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.597e-05/0.4507, allocations: 110.8 kB / 492.2 MB, free: 4.395 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002713/0.451, allocations: 266 kB / 492.5 MB, free: 4.133 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.219e-05/0.451, allocations: 33.7 kB / 492.5 MB, free: 4.094 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000109/0.4512, allocations: 168.7 kB / 492.7 MB, free: 3.922 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.892e-05/0.4513, allocations: 79 kB / 492.8 MB, free: 3.844 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.11e-05/0.4513, allocations: 4 kB / 492.8 MB, free: 3.84 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.4514, allocations: 338.8 kB / 493.1 MB, free: 3.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002188/0.4517, allocations: 152.8 kB / 493.2 MB, free: 3.352 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002472/0.4519, allocations: 195.7 kB / 493.4 MB, free: 3.145 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002531/0.4522, allocations: 179.8 kB / 493.6 MB, free: 2.969 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.4522, allocations: 3.938 kB / 493.6 MB, free: 2.965 MB / 362.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009526/0.4531, allocations: 0.5166 MB / 494.1 MB, free: 2.441 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.185e-05/0.4532, allocations: 63.44 kB / 494.2 MB, free: 2.367 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.4532, allocations: 3.984 kB / 494.2 MB, free: 2.363 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.4532, allocations: 4 kB / 494.2 MB, free: 2.359 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001795/0.4534, allocations: 55.91 kB / 494.2 MB, free: 2.305 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.4535, allocations: 4 kB / 494.3 MB, free: 2.301 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000309/0.4538, allocations: 43.81 kB / 494.3 MB, free: 2.258 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002629/0.454, allocations: 283.7 kB / 494.6 MB, free: 1.98 MB / 362.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.0002495/0.4543, allocations: 201.5 kB / 494.8 MB, free: 1.762 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007157/0.455, allocations: 461 kB / 495.2 MB, free: 1.305 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.158e-05/0.4551, allocations: 31.62 kB / 495.2 MB, free: 1.273 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.654e-05/0.4552, allocations: 35.39 kB / 495.3 MB, free: 1.242 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.4552, allocations: 7.938 kB / 495.3 MB, free: 1.234 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.4552, allocations: 0 / 495.3 MB, free: 1.234 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.4552, allocations: 4 kB / 495.3 MB, free: 1.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005656/0.4558, allocations: 409.9 kB / 495.7 MB, free: 0.793 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.4558, allocations: 4 kB / 495.7 MB, free: 0.7891 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001159/0.4559, allocations: 43.97 kB / 495.7 MB, free: 0.7461 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.4559, allocations: 4 kB / 495.7 MB, free: 0.7422 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-05/0.456, allocations: 43.97 kB / 495.8 MB, free: 0.6992 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.456, allocations: 7.938 kB / 495.8 MB, free: 0.6914 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.456, allocations: 0 / 495.8 MB, free: 0.6914 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007203/0.4568, allocations: 0.4928 MB / 496.3 MB, free: 184 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002768/0.4571, allocations: 200.6 kB / 496.5 MB, free: 15.96 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001014/0.4572, allocations: 8 kB / 496.5 MB, free: 15.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002331/0.4574, allocations: 35.86 kB / 496.5 MB, free: 15.92 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001833/0.4576, allocations: 83.92 kB / 496.6 MB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000247/0.4579, allocations: 287.6 kB / 496.9 MB, free: 15.56 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001699/0.458, allocations: 190 kB / 497.1 MB, free: 15.37 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.458, allocations: 0 / 497.1 MB, free: 15.37 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004294/0.4585, allocations: 76 kB / 497.2 MB, free: 15.3 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.001047/0.4595, allocations: 1.063 MB / 498.2 MB, free: 14.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006755/0.4602, allocations: 499.2 kB / 498.7 MB, free: 13.69 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.4602, allocations: 0 / 498.7 MB, free: 13.69 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003565/0.4606, allocations: 334.4 kB / 499 MB, free: 13.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001287/0.4619, allocations: 286.8 kB / 499.3 MB, free: 13.06 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001331/0.4632, allocations: 0.5778 MB / 499.9 MB, free: 12.45 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003751/0.4636, allocations: 0.815 MB / 0.489 GB, free: 11.61 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001472/0.4651, allocations: 0.7473 MB / 0.4897 GB, free: 10.86 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008205/0.4659, allocations: 330.8 kB / 0.49 GB, free: 10.54 MB / 378.7 MB Notification: Performance of SimCode: time 8.81e-07/0.466, allocations: 0 / 0.49 GB, free: 10.54 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03261/0.4986, allocations: 12.25 MB / 0.502 GB, free: 14.04 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001643/0.4988, allocations: 131.7 kB / 0.5021 GB, free: 13.85 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.898/2.397, allocations: 0 / 0.5021 GB, free: 13.85 MB / 394.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