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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001576/0.001576, allocations: 182.9 kB / 8.138 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.152/1.152, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.0009133/0.0009135, allocations: 96.09 kB / 280.8 MB, free: 1.227 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0937/0.09464, allocations: 55.82 MB / 336.6 MB, free: 9.395 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1852/0.2798, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0841/0.364, allocations: 82.66 MB / 469.7 MB, free: 4.109 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002036/0.3642, allocations: 67.91 kB / 469.7 MB, free: 4.043 MB / 346.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.2068/0.5711, allocations: 43.19 MB / 0.5009 GB, free: 101.4 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.5711, allocations: 7.906 kB / 0.5009 GB, free: 101.4 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000126/0.5713, allocations: 46.97 kB / 0.501 GB, free: 101.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004452/0.5717, allocations: 348.4 kB / 0.5013 GB, free: 101.1 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.834e-05/0.5718, allocations: 10.75 kB / 0.5013 GB, free: 101.1 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.978e-05/0.5719, allocations: 21.5 kB / 0.5013 GB, free: 101.1 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005437/0.5724, allocations: 346.7 kB / 0.5016 GB, free: 101.1 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006061/0.573, allocations: 440.6 kB / 0.5021 GB, free: 101.1 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.573, allocations: 0 / 0.5021 GB, free: 101.1 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.863e-05/0.5731, allocations: 0 / 0.5021 GB, free: 101.1 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.5731, allocations: 10 kB / 0.5021 GB, free: 101.1 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001501/0.5746, allocations: 1.011 MB / 0.5031 GB, free: 100.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006769/0.5753, allocations: 385 kB / 0.5034 GB, free: 100.8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001925/0.5755, allocations: 151.7 kB / 0.5036 GB, free: 100.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.661e-05/0.5756, allocations: 8.219 kB / 0.5036 GB, free: 100.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003211/0.5759, allocations: 303.9 kB / 0.5039 GB, free: 100.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 2.064e-06/0.5759, allocations: 0 / 0.5039 GB, free: 100.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.0006666/0.5766, allocations: 445.9 kB / 0.5043 GB, free: 100.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.96e-05/0.5766, allocations: 110.2 kB / 0.5044 GB, free: 100.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001912/0.5768, allocations: 260.3 kB / 0.5047 GB, free: 100.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.995e-05/0.5769, allocations: 36.8 kB / 0.5047 GB, free: 100.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.199e-05/0.577, allocations: 153.9 kB / 0.5048 GB, free: 100.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.608e-05/0.5771, allocations: 74.66 kB / 0.5049 GB, free: 100.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.182e-05/0.5771, allocations: 12.75 kB / 0.5049 GB, free: 100.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.83e-05/0.5772, allocations: 335.5 kB / 0.5052 GB, free: 99.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002121/0.5774, allocations: 155.9 kB / 0.5054 GB, free: 99.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002276/0.5776, allocations: 203.4 kB / 0.5056 GB, free: 99.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002405/0.5779, allocations: 181.4 kB / 0.5058 GB, free: 99.88 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.5779, allocations: 0 / 0.5058 GB, free: 99.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007183/0.5786, allocations: 0.4903 MB / 0.5062 GB, free: 99.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.5786, allocations: 8 kB / 0.5062 GB, free: 99.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.5786, allocations: 2.375 kB / 0.5062 GB, free: 99.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.5787, allocations: 3.625 kB / 0.5062 GB, free: 99.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001349/0.5788, allocations: 58.44 kB / 0.5063 GB, free: 99.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.5788, allocations: 6.906 kB / 0.5063 GB, free: 99.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002927/0.5791, allocations: 44.81 kB / 0.5064 GB, free: 99.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000253/0.5794, allocations: 277.3 kB / 0.5066 GB, free: 99.8 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.0001901/0.5796, allocations: 199.5 kB / 0.5068 GB, free: 99.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.616e-05/0.5797, allocations: 35.91 kB / 0.5068 GB, free: 99.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.423e-05/0.5797, allocations: 31.53 kB / 0.5069 GB, free: 99.58 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.072e-06/0.5797, allocations: 3.656 kB / 0.5069 GB, free: 99.58 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.5798, allocations: 0 / 0.5069 GB, free: 99.58 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.5798, allocations: 4.312 kB / 0.5069 GB, free: 99.58 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004977/0.5803, allocations: 406 kB / 0.5073 GB, free: 99.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.5803, allocations: 0.5 kB / 0.5073 GB, free: 99.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001389/0.5804, allocations: 49.22 kB / 0.5073 GB, free: 99.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.5804, allocations: 5.281 kB / 0.5073 GB, free: 99.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001007/0.5805, allocations: 45.97 kB / 0.5074 GB, free: 99.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.5805, allocations: 10.09 kB / 0.5074 GB, free: 99.33 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.5806, allocations: 0.5938 kB / 0.5074 GB, free: 99.33 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008108/0.5814, allocations: 480.2 kB / 0.5078 GB, free: 99.17 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006813/0.5821, allocations: 0.8337 MB / 0.5086 GB, free: 98.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002381/0.5823, allocations: 197.5 kB / 0.5088 GB, free: 98.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001277/0.5824, allocations: 12.19 kB / 0.5088 GB, free: 98.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002357/0.5827, allocations: 37.27 kB / 0.5089 GB, free: 98.49 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001853/0.5829, allocations: 79.19 kB / 0.509 GB, free: 98.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002287/0.5831, allocations: 283.6 kB / 0.5092 GB, free: 98.46 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.000134/0.5833, allocations: 190.7 kB / 0.5094 GB, free: 98.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009621/0.5842, allocations: 72.44 kB / 0.5095 GB, free: 98.34 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.0001726/0.5844, allocations: 139.8 kB / 0.5096 GB, free: 98.24 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005874/0.585, allocations: 457 kB / 0.51 GB, free: 97.88 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.585, allocations: 0.9375 kB / 0.51 GB, free: 97.88 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003086/0.5853, allocations: 281 kB / 0.5103 GB, free: 97.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00101/0.5863, allocations: 278.4 kB / 0.5106 GB, free: 97.44 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001075/0.5874, allocations: 0.518 MB / 0.5111 GB, free: 96.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001507/0.5889, allocations: 1.476 MB / 0.5125 GB, free: 95.53 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.589, allocations: 4 kB / 0.5125 GB, free: 95.53 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)