Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001162/0.001162, allocations: 202.1 kB / 8.543 MB, free: 1.797 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.175/1.175, allocations: 225.5 MB / 234.4 MB, free: 3.34 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008707/0.0008707, allocations: 95.05 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1013/0.1022, allocations: 56.9 MB / 343.2 MB, free: 8.641 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08762/0.1898, allocations: 51.46 MB / 394.7 MB, free: 5.125 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2251/0.415, allocations: 83.48 MB / 478.2 MB, free: 9.289 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001632/0.4152, allocations: 72.22 kB / 478.2 MB, free: 9.262 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.07604/0.4912, allocations: 43.24 MB / 0.5093 GB, free: 4.125 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.4913, allocations: 8 kB / 0.5093 GB, free: 4.117 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001297/0.4914, allocations: 43.53 kB / 0.5093 GB, free: 4.074 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004866/0.4919, allocations: 354.6 kB / 0.5096 GB, free: 3.688 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.72e-05/0.492, allocations: 12 kB / 0.5097 GB, free: 3.676 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.251e-05/0.492, allocations: 20 kB / 0.5097 GB, free: 3.656 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006442/0.4927, allocations: 341.1 kB / 0.51 GB, free: 3.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006995/0.4934, allocations: 436.5 kB / 0.5104 GB, free: 2.887 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.4934, allocations: 0 / 0.5104 GB, free: 2.887 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.428e-05/0.4935, allocations: 8 kB / 0.5104 GB, free: 2.879 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.4935, allocations: 8 kB / 0.5104 GB, free: 2.871 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001699/0.4952, allocations: 1.01 MB / 0.5114 GB, free: 1.82 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007753/0.496, allocations: 388.8 kB / 0.5118 GB, free: 1.434 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002433/0.4963, allocations: 149.4 kB / 0.5119 GB, free: 1.285 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.212e-05/0.4963, allocations: 12.27 kB / 0.5119 GB, free: 1.273 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004177/0.4968, allocations: 303.4 kB / 0.5122 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 1.834e-06/0.4968, allocations: 1.969 kB / 0.5122 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.0008588/0.4976, allocations: 446.3 kB / 0.5127 GB, free: 0.5234 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.07e-05/0.4977, allocations: 106.8 kB / 0.5128 GB, free: 404 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002646/0.498, allocations: 264.8 kB / 0.513 GB, free: 136 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.678e-05/0.4981, allocations: 33.7 kB / 0.5131 GB, free: 96 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.254e-05/0.4982, allocations: 152.8 kB / 0.5132 GB, free: 15.94 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.4983, allocations: 79.02 kB / 0.5133 GB, free: 15.86 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.23e-05/0.4983, allocations: 4 kB / 0.5133 GB, free: 15.86 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.4984, allocations: 338.8 kB / 0.5136 GB, free: 15.52 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002627/0.4987, allocations: 152.8 kB / 0.5137 GB, free: 15.37 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002911/0.499, allocations: 203.7 kB / 0.5139 GB, free: 15.15 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002933/0.4993, allocations: 174.3 kB / 0.5141 GB, free: 14.98 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.4993, allocations: 0 / 0.5141 GB, free: 14.98 MB / 394.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008544/0.5002, allocations: 0.5076 MB / 0.5146 GB, free: 14.48 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.5002, allocations: 8 kB / 0.5146 GB, free: 14.47 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.5002, allocations: 0 / 0.5146 GB, free: 14.47 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.964e-05/0.5003, allocations: 4 kB / 0.5146 GB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001565/0.5004, allocations: 51.91 kB / 0.5147 GB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.5004, allocations: 4 kB / 0.5147 GB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003185/0.5008, allocations: 55.77 kB / 0.5147 GB, free: 14.36 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002757/0.501, allocations: 279.7 kB / 0.515 GB, free: 14.08 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.0002086/0.5013, allocations: 197.3 kB / 0.5152 GB, free: 13.87 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.968e-05/0.5013, allocations: 39.62 kB / 0.5152 GB, free: 13.83 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.726e-05/0.5014, allocations: 34.95 kB / 0.5152 GB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.5014, allocations: 0 / 0.5152 GB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.5014, allocations: 4 kB / 0.5152 GB, free: 13.79 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.5014, allocations: 0 / 0.5152 GB, free: 13.79 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005091/0.502, allocations: 405.9 kB / 0.5156 GB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.502, allocations: 0 / 0.5156 GB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001173/0.5021, allocations: 51.91 kB / 0.5157 GB, free: 13.31 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.5021, allocations: 0 / 0.5157 GB, free: 13.31 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.251e-05/0.5022, allocations: 51.88 kB / 0.5157 GB, free: 13.26 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.5022, allocations: 0 / 0.5157 GB, free: 13.26 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.5022, allocations: 9.625 kB / 0.5157 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007653/0.503, allocations: 472.3 kB / 0.5162 GB, free: 12.77 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008154/0.5038, allocations: 0.841 MB / 0.517 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002601/0.5041, allocations: 192.7 kB / 0.5172 GB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001289/0.5042, allocations: 8 kB / 0.5172 GB, free: 11.69 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002465/0.5045, allocations: 39.88 kB / 0.5172 GB, free: 11.65 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001931/0.5047, allocations: 79.91 kB / 0.5173 GB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002538/0.505, allocations: 283.7 kB / 0.5176 GB, free: 11.3 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001564/0.5051, allocations: 189.2 kB / 0.5178 GB, free: 11.11 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009537/0.5061, allocations: 72 kB / 0.5178 GB, free: 11.04 MB / 394.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.0001896/0.5063, allocations: 137.7 kB / 0.518 GB, free: 10.89 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006753/0.507, allocations: 451 kB / 0.5184 GB, free: 10.44 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.507, allocations: 4 kB / 0.5184 GB, free: 10.44 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003895/0.5074, allocations: 279.2 kB / 0.5187 GB, free: 10.15 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001076/0.5085, allocations: 264.9 kB / 0.5189 GB, free: 9.91 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001236/0.5097, allocations: 0.5262 MB / 0.5194 GB, free: 9.363 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001807/0.5115, allocations: 1.473 MB / 0.5209 GB, free: 7.898 MB / 394.7 MB Notification: Performance of SimCode: time 3.4e-07/0.5115, allocations: 0 / 0.5209 GB, free: 7.898 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_FlipFlop_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_FlipFlop.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1)