Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.FlipFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop") translateModel(Modelica.Electrical.Digital.Examples.FlipFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001514/0.001514, allocations: 187.9 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.315/1.315, allocations: 194.3 MB / 203.1 MB, free: 9.32 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001668/0.001668, allocations: 115.9 kB / 248.1 MB, free: 6.352 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.573e-05/1.575e-05, allocations: 4 kB / 298.1 MB, free: 8.25 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0844/0.08443, allocations: 44.5 MB / 342.6 MB, free: 11.65 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2678/0.3523, allocations: 77.61 MB / 420.2 MB, free: 18.17 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001497/0.3525, allocations: 66.53 kB / 420.2 MB, free: 18.14 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.07094/0.4234, allocations: 42.54 MB / 462.8 MB, free: 15.54 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4235, allocations: 0 / 462.8 MB, free: 15.54 MB / 347.1 MB Notification: Performance of Transformations before backend: time 2.719e-05/0.4235, allocations: 8 kB / 462.8 MB, free: 15.53 MB / 347.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001145/0.4247, allocations: 0.6783 MB / 463.5 MB, free: 14.8 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.4247, allocations: 12.03 kB / 463.5 MB, free: 14.79 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001768/0.4249, allocations: 47.44 kB / 463.5 MB, free: 14.74 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000545/0.4255, allocations: 343.3 kB / 463.9 MB, free: 14.36 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.986e-05/0.4255, allocations: 19.92 kB / 463.9 MB, free: 14.34 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.423e-05/0.4256, allocations: 24 kB / 463.9 MB, free: 14.32 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006591/0.4263, allocations: 325.4 kB / 464.2 MB, free: 14 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006791/0.4269, allocations: 425.9 kB / 464.6 MB, free: 13.58 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.427, allocations: 0 / 464.6 MB, free: 13.58 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.767e-05/0.427, allocations: 4 kB / 464.6 MB, free: 13.57 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.427, allocations: 8 kB / 464.7 MB, free: 13.57 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001544/0.4286, allocations: 0.9987 MB / 465.7 MB, free: 12.53 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007043/0.4293, allocations: 398.8 kB / 466 MB, free: 12.13 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002096/0.4295, allocations: 140.8 kB / 466.2 MB, free: 11.99 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.372e-05/0.4296, allocations: 4 kB / 466.2 MB, free: 11.99 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004091/0.43, allocations: 305.1 kB / 466.5 MB, free: 11.68 MB / 347.1 MB Notification: Performance of pre-optimization done (n=33): time 1.723e-06/0.43, allocations: 0 / 466.5 MB, free: 11.68 MB / 347.1 MB Notification: Performance of matching and sorting (n=33): time 0.0007915/0.4308, allocations: 459.6 kB / 466.9 MB, free: 11.22 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.535e-05/0.4309, allocations: 114.8 kB / 467 MB, free: 11.09 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000297/0.4312, allocations: 258.1 kB / 467.3 MB, free: 10.83 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 7.221e-05/0.4313, allocations: 33.7 kB / 467.3 MB, free: 10.79 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.4314, allocations: 172.7 kB / 467.5 MB, free: 10.61 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001032/0.4316, allocations: 71.11 kB / 467.6 MB, free: 10.54 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.187e-05/0.4316, allocations: 4 kB / 467.6 MB, free: 10.54 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.4318, allocations: 339.8 kB / 467.9 MB, free: 10.2 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002407/0.432, allocations: 156.7 kB / 468.1 MB, free: 10.04 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002588/0.4323, allocations: 197.1 kB / 468.2 MB, free: 9.836 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002706/0.4326, allocations: 164.9 kB / 468.4 MB, free: 9.676 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.4326, allocations: 0 / 468.4 MB, free: 9.676 MB / 347.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007619/0.4333, allocations: 0.5107 MB / 468.9 MB, free: 9.16 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.001e-05/0.4334, allocations: 67.39 kB / 469 MB, free: 9.082 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.4334, allocations: 3.984 kB / 469 MB, free: 9.078 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/0.4335, allocations: 8.031 kB / 469 MB, free: 9.07 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.4336, allocations: 55.91 kB / 469.1 MB, free: 9.016 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.573e-06/0.4336, allocations: 4 kB / 469.1 MB, free: 9.012 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003071/0.4339, allocations: 41.69 kB / 469.1 MB, free: 8.973 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002556/0.4342, allocations: 287.7 kB / 469.4 MB, free: 8.691 MB / 347.1 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 (46): * Single equations (assignments): 44 * 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.0002312/0.4344, allocations: 205.3 kB / 469.6 MB, free: 8.473 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.417e-05/0.4345, allocations: 31.62 kB / 469.6 MB, free: 8.441 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.456e-05/0.4346, allocations: 39.38 kB / 469.6 MB, free: 8.406 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.4346, allocations: 4 kB / 469.7 MB, free: 8.402 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.4346, allocations: 0 / 469.7 MB, free: 8.402 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.4346, allocations: 0 / 469.7 MB, free: 8.402 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004936/0.4351, allocations: 405.8 kB / 470 MB, free: 7.969 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.4351, allocations: 0 / 470 MB, free: 7.969 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.12e-05/0.4352, allocations: 43.91 kB / 470.1 MB, free: 7.926 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.4352, allocations: 8 kB / 470.1 MB, free: 7.918 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.286e-05/0.4353, allocations: 43.97 kB / 470.1 MB, free: 7.875 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.4353, allocations: 4 kB / 470.1 MB, free: 7.871 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.4353, allocations: 0 / 470.1 MB, free: 7.871 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006444/0.436, allocations: 492.7 kB / 470.6 MB, free: 7.371 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002422/0.4362, allocations: 192.7 kB / 470.8 MB, free: 7.164 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/0.4363, allocations: 15.94 kB / 470.8 MB, free: 7.148 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002317/0.4366, allocations: 39.81 kB / 470.9 MB, free: 7.109 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001847/0.4368, allocations: 83.91 kB / 471 MB, free: 7.027 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002557/0.437, allocations: 280.8 kB / 471.2 MB, free: 6.754 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0001803/0.4372, allocations: 186 kB / 471.4 MB, free: 6.574 MB / 347.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.4373, allocations: 0 / 471.4 MB, free: 6.574 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0004404/0.4377, allocations: 75.98 kB / 471.5 MB, free: 6.5 MB / 347.1 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 (33): * Single equations (assignments): 30 * 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.0002014/0.4379, allocations: 129.9 kB / 471.6 MB, free: 6.363 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0006371/0.4386, allocations: 494.5 kB / 472.1 MB, free: 5.855 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.4386, allocations: 0 / 472.1 MB, free: 5.855 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003688/0.4389, allocations: 322.6 kB / 472.4 MB, free: 5.516 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001217/0.4402, allocations: 276.3 kB / 472.7 MB, free: 5.254 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009353/0.4411, allocations: 0.5027 MB / 473.2 MB, free: 4.727 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003889/0.4415, allocations: 0.8152 MB / 474 MB, free: 3.883 MB / 347.1 MB Notification: Performance of simCode: alias equations: time 0.001329/0.4429, allocations: 0.7495 MB / 474.7 MB, free: 3.137 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007142/0.4436, allocations: 262.8 kB / 475 MB, free: 2.879 MB / 347.1 MB Notification: Performance of SimCode: time 8.01e-07/0.4436, allocations: 4 kB / 475 MB, free: 2.875 MB / 347.1 MB Notification: Performance of Templates: time 0.01395/0.4576, allocations: 9.669 MB / 484.7 MB, free: 9.004 MB / 363.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1)