Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.FlipFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop") translateModel(Modelica.Electrical.Digital.Examples.FlipFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001251/0.001251, allocations: 164.4 kB / 7.635 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.336/1.336, allocations: 170.6 MB / 178.7 MB, free: 15.65 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001594/0.001594, allocations: 119.4 kB / 218 MB, free: 8.41 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.946e-05/1.986e-05, allocations: 4 kB / 262.2 MB, free: 26.4 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07718/0.07722, allocations: 38.78 MB / 301 MB, free: 3.637 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2808/0.3581, allocations: 72.31 MB / 373.3 MB, free: 12.11 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001996/0.3583, allocations: 70.33 kB / 373.4 MB, free: 12.08 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07929/0.4376, allocations: 42.54 MB / 415.9 MB, free: 7.945 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.306e-06/0.4377, allocations: 3.984 kB / 415.9 MB, free: 7.941 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.277e-05/0.4377, allocations: 11.94 kB / 415.9 MB, free: 7.93 MB / 298.7 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.001383/0.4391, allocations: 0.69 MB / 416.6 MB, free: 7.184 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.4392, allocations: 8.031 kB / 416.6 MB, free: 7.176 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002341/0.4394, allocations: 47.52 kB / 416.7 MB, free: 7.129 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006479/0.4401, allocations: 343.2 kB / 417 MB, free: 6.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.108e-05/0.4401, allocations: 15.98 kB / 417 MB, free: 6.734 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.82e-05/0.4402, allocations: 31.89 kB / 417 MB, free: 6.703 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006465/0.4409, allocations: 325.4 kB / 417.4 MB, free: 6.383 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007644/0.4417, allocations: 425.9 kB / 417.8 MB, free: 5.961 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.4417, allocations: 0 / 417.8 MB, free: 5.961 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.144e-05/0.4418, allocations: 0 / 417.8 MB, free: 5.961 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.2e-05/0.4418, allocations: 12 kB / 417.8 MB, free: 5.949 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0019/0.4437, allocations: 0.9987 MB / 418.8 MB, free: 4.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007493/0.4445, allocations: 387.4 kB / 419.2 MB, free: 4.523 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002096/0.4447, allocations: 144.8 kB / 419.3 MB, free: 4.379 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.803e-05/0.4448, allocations: 4 kB / 419.3 MB, free: 4.375 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004277/0.4452, allocations: 305.1 kB / 419.6 MB, free: 4.062 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 2.184e-06/0.4452, allocations: 0 / 419.6 MB, free: 4.062 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.0007836/0.446, allocations: 463 kB / 420.1 MB, free: 3.605 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.16e-05/0.4461, allocations: 110.8 kB / 420.2 MB, free: 3.473 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003162/0.4464, allocations: 266 kB / 420.4 MB, free: 3.211 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.59e-05/0.4465, allocations: 33.7 kB / 420.5 MB, free: 3.172 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001247/0.4466, allocations: 172.7 kB / 420.6 MB, free: 2.996 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.4467, allocations: 67.17 kB / 420.7 MB, free: 2.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.26e-05/0.4468, allocations: 4 kB / 420.7 MB, free: 2.926 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.4469, allocations: 342.8 kB / 421 MB, free: 2.582 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000228/0.4472, allocations: 148.7 kB / 421.2 MB, free: 2.434 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002646/0.4474, allocations: 201 kB / 421.4 MB, free: 2.223 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002575/0.4477, allocations: 169.3 kB / 421.5 MB, free: 2.059 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.4477, allocations: 4 kB / 421.5 MB, free: 2.055 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007686/0.4485, allocations: 0.5126 MB / 422.1 MB, free: 1.535 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.38e-05/0.4486, allocations: 67.3 kB / 422.1 MB, free: 1.457 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.4486, allocations: 0 / 422.1 MB, free: 1.457 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/0.4486, allocations: 4 kB / 422.1 MB, free: 1.453 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001473/0.4487, allocations: 55.91 kB / 422.2 MB, free: 1.398 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.342e-05/0.4488, allocations: 7.938 kB / 422.2 MB, free: 1.391 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003404/0.4491, allocations: 39.88 kB / 422.2 MB, free: 1.352 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002587/0.4494, allocations: 279.7 kB / 422.5 MB, free: 1.078 MB / 298.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 (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.0002506/0.4496, allocations: 201.6 kB / 422.7 MB, free: 0.8594 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.23e-05/0.4497, allocations: 35.61 kB / 422.7 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.199e-05/0.4498, allocations: 35.39 kB / 422.8 MB, free: 0.793 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.4498, allocations: 7.938 kB / 422.8 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.4498, allocations: 0 / 422.8 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.4498, allocations: 0 / 422.8 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006259/0.4505, allocations: 401.9 kB / 423.2 MB, free: 364 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.4505, allocations: 0 / 423.2 MB, free: 364 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001009/0.4506, allocations: 47.97 kB / 423.2 MB, free: 316 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.4506, allocations: 0 / 423.2 MB, free: 316 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.102e-05/0.4507, allocations: 47.92 kB / 423.3 MB, free: 268 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.207e-06/0.4507, allocations: 3.938 kB / 423.3 MB, free: 264 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.4507, allocations: 0 / 423.3 MB, free: 264 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007649/0.4515, allocations: 496.4 kB / 423.7 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002803/0.4518, allocations: 200.6 kB / 423.9 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000118/0.4519, allocations: 8 kB / 424 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000254/0.4522, allocations: 35.83 kB / 424 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001966/0.4524, allocations: 87.91 kB / 424.1 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002841/0.4527, allocations: 283.6 kB / 424.3 MB, free: 15.13 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001773/0.4529, allocations: 186 kB / 424.5 MB, free: 14.95 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4529, allocations: 0 / 424.5 MB, free: 14.95 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004431/0.4533, allocations: 75.98 kB / 424.6 MB, free: 14.88 MB / 314.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 (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.0002282/0.4536, allocations: 133.4 kB / 424.7 MB, free: 14.73 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007134/0.4543, allocations: 490.5 kB / 425.2 MB, free: 14.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4543, allocations: 0 / 425.2 MB, free: 14.23 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003627/0.4547, allocations: 330.6 kB / 425.5 MB, free: 13.88 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001203/0.4559, allocations: 268.6 kB / 425.8 MB, free: 13.62 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/0.4569, allocations: 0.515 MB / 426.3 MB, free: 13.08 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004286/0.4574, allocations: 0.8074 MB / 427.1 MB, free: 12.25 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001397/0.4588, allocations: 0.7474 MB / 427.9 MB, free: 11.5 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007294/0.4595, allocations: 262.8 kB / 428.1 MB, free: 11.25 MB / 314.7 MB Notification: Performance of SimCode: time 4.11e-07/0.4595, allocations: 0 / 428.1 MB, free: 11.25 MB / 314.7 MB Notification: Performance of Templates: time 0.01553/0.4751, allocations: 9.671 MB / 437.8 MB, free: 1.34 MB / 314.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1)