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"}) [: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 3.2.3+maint.om/package.mo): time 0.001061/0.001061, allocations: 178.5 kB / 8.477 MB, free: 1.871 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.022/1.022, allocations: 205.2 MB / 214.1 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008676/0.0008676, allocations: 80.55 kB / 262.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.085/0.0859, allocations: 52.99 MB / 315.1 MB, free: 8.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1749/0.2608, allocations: 47.55 MB / 362.6 MB, free: 45.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08053/0.3414, allocations: 81.75 MB / 444.4 MB, free: 4.172 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001837/0.3416, allocations: 71.95 kB / 444.4 MB, free: 4.102 MB / 330.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.08119/0.4228, allocations: 42.67 MB / 487.1 MB, free: 9.527 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.4229, allocations: 8 kB / 487.1 MB, free: 9.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001499/0.4231, allocations: 47.44 kB / 487.2 MB, free: 9.473 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005073/0.4236, allocations: 350.7 kB / 487.5 MB, free: 9.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.604e-05/0.4236, allocations: 12 kB / 487.5 MB, free: 9.078 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.611e-05/0.4237, allocations: 24 kB / 487.5 MB, free: 9.055 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006007/0.4243, allocations: 337.2 kB / 487.9 MB, free: 8.723 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006821/0.425, allocations: 436.4 kB / 488.3 MB, free: 8.289 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.425, allocations: 0 / 488.3 MB, free: 8.289 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.371e-05/0.4251, allocations: 8 kB / 488.3 MB, free: 8.281 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.4251, allocations: 8 kB / 488.3 MB, free: 8.273 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001712/0.4268, allocations: 1.02 MB / 489.3 MB, free: 7.215 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007785/0.4276, allocations: 387.3 kB / 489.7 MB, free: 6.828 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002262/0.4279, allocations: 145.4 kB / 489.8 MB, free: 6.684 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.761e-05/0.4279, allocations: 12.27 kB / 489.9 MB, free: 6.672 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004256/0.4284, allocations: 309.8 kB / 490.2 MB, free: 6.359 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 2.905e-06/0.4284, allocations: 3.938 kB / 490.2 MB, free: 6.355 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.0007517/0.4291, allocations: 444.7 kB / 490.6 MB, free: 5.914 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.036e-05/0.4292, allocations: 110.8 kB / 490.7 MB, free: 5.781 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000268/0.4295, allocations: 264.8 kB / 491 MB, free: 5.52 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.842e-05/0.4296, allocations: 33.69 kB / 491 MB, free: 5.48 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.061e-05/0.4296, allocations: 148.7 kB / 491.1 MB, free: 5.332 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/0.4298, allocations: 79.02 kB / 491.2 MB, free: 5.254 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.45e-05/0.4298, allocations: 4 kB / 491.2 MB, free: 5.25 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.4299, allocations: 342.8 kB / 491.6 MB, free: 4.906 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002491/0.4302, allocations: 148.8 kB / 491.7 MB, free: 4.762 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000275/0.4305, allocations: 203.7 kB / 491.9 MB, free: 4.547 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002787/0.4308, allocations: 171.9 kB / 492.1 MB, free: 4.379 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.4308, allocations: 0 / 492.1 MB, free: 4.379 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007822/0.4316, allocations: 0.4942 MB / 492.6 MB, free: 3.879 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.4316, allocations: 6.969 kB / 492.6 MB, free: 3.875 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.4316, allocations: 3.938 kB / 492.6 MB, free: 3.871 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.4316, allocations: 4 kB / 492.6 MB, free: 3.867 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001568/0.4318, allocations: 59.89 kB / 492.6 MB, free: 3.809 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.119e-06/0.4318, allocations: 0 / 492.6 MB, free: 3.809 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003162/0.4321, allocations: 47.84 kB / 492.7 MB, free: 3.762 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002594/0.4324, allocations: 279.7 kB / 493 MB, free: 3.488 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.000306/0.4327, allocations: 204.2 kB / 493.2 MB, free: 3.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.388e-05/0.4328, allocations: 39.62 kB / 493.2 MB, free: 3.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.634e-05/0.4329, allocations: 30.95 kB / 493.2 MB, free: 3.195 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.4329, allocations: 4 kB / 493.2 MB, free: 3.191 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.4329, allocations: 1.875 kB / 493.2 MB, free: 3.191 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.4329, allocations: 3.984 kB / 493.2 MB, free: 3.188 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005432/0.4335, allocations: 401.9 kB / 493.6 MB, free: 2.758 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.4335, allocations: 0 / 493.6 MB, free: 2.758 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000117/0.4336, allocations: 51.91 kB / 493.7 MB, free: 2.707 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.4336, allocations: 0 / 493.7 MB, free: 2.707 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.693e-05/0.4337, allocations: 47.97 kB / 493.7 MB, free: 2.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.4337, allocations: 3.906 kB / 493.7 MB, free: 2.656 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.4337, allocations: 4 kB / 493.7 MB, free: 2.652 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007812/0.4345, allocations: 468.7 kB / 494.2 MB, free: 2.176 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008173/0.4353, allocations: 0.8445 MB / 495 MB, free: 1.309 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002812/0.4356, allocations: 192.6 kB / 495.2 MB, free: 1.102 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001264/0.4358, allocations: 24 kB / 495.2 MB, free: 1.078 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002465/0.436, allocations: 35.88 kB / 495.3 MB, free: 1.043 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001971/0.4362, allocations: 75.91 kB / 495.4 MB, free: 0.9688 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002513/0.4365, allocations: 287.7 kB / 495.6 MB, free: 0.6875 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001631/0.4367, allocations: 185.2 kB / 495.8 MB, free: 0.5039 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009706/0.4376, allocations: 72 kB / 495.9 MB, free: 444 kB / 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.000223/0.4379, allocations: 137.8 kB / 496 MB, free: 296 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007212/0.4386, allocations: 455 kB / 496.5 MB, free: 15.83 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.4386, allocations: 2.344 kB / 496.5 MB, free: 15.83 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003655/0.439, allocations: 275.2 kB / 496.7 MB, free: 15.55 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.44, allocations: 288.1 kB / 497 MB, free: 15.28 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001212/0.4413, allocations: 0.5264 MB / 497.5 MB, free: 14.73 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001807/0.4431, allocations: 1.47 MB / 499 MB, free: 13.23 MB / 394.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4431, allocations: 0 / 499 MB, free: 13.23 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)