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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001556/0.001566, allocations: 108.3 kB / 17.06 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001701/0.001701, allocations: 191 kB / 18 MB, free: 4.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.101/2.101, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 59.91 kB / 327.9 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.141, allocations: 46.62 MB / 374.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.004644/0.1457, allocations: 2.131 MB / 376.6 MB, free: 2.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003373/0.1491, allocations: 1.17 MB / 377.8 MB, free: 1.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002569/0.1494, allocations: 0 / 377.8 MB, free: 1.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003303/0.1498, allocations: 47.52 kB / 377.8 MB, free: 1.203 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001505/0.15, allocations: 47.62 kB / 377.9 MB, free: 1.156 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007457/0.1507, allocations: 167.7 kB / 378 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006025/0.1514, allocations: 463.6 kB / 378.5 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003956/0.1518, allocations: 156.9 kB / 378.7 MB, free: 392 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3051/0.4569, allocations: 0.8384 MB / 379.5 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006512/0.4576, allocations: 249.2 kB / 379.7 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001581/0.4578, allocations: 41.25 kB / 379.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001111/0.4579, allocations: 43.47 kB / 379.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002321/0.4581, allocations: 146 kB / 380 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003091/0.4584, allocations: 220.3 kB / 380.2 MB, free: 10.01 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001616/0.4601, allocations: 0.924 MB / 381.1 MB, free: 9.957 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.105e-05/0.4601, allocations: 0.5312 kB / 381.1 MB, free: 9.957 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.667e-06/0.4601, allocations: 2.719 kB / 381.1 MB, free: 9.957 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.213e-05/0.4601, allocations: 0.6562 kB / 381.1 MB, free: 9.957 MB / 318.1 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.00204/0.4622, allocations: 0.8703 MB / 382 MB, free: 9.43 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.4623, allocations: 10.22 kB / 382 MB, free: 9.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001733/0.4624, allocations: 52.34 kB / 382 MB, free: 9.406 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006089/0.4631, allocations: 347.6 kB / 382.4 MB, free: 9.176 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.105e-05/0.4631, allocations: 27.16 kB / 382.4 MB, free: 9.176 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000115/0.4632, allocations: 34.34 kB / 382.4 MB, free: 9.176 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001276/0.4645, allocations: 485.8 kB / 382.9 MB, free: 9.133 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.166e-05/0.4646, allocations: 5.281 kB / 382.9 MB, free: 9.129 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.941e-05/0.4646, allocations: 16.25 kB / 382.9 MB, free: 9.129 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.251e-05/0.4647, allocations: 9.938 kB / 382.9 MB, free: 9.129 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009534/0.4656, allocations: 378.9 kB / 383.3 MB, free: 9.129 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0025/0.4682, allocations: 1.115 MB / 384.4 MB, free: 8.816 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001255/0.4694, allocations: 435.2 kB / 384.8 MB, free: 8.793 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004129/0.4699, allocations: 178 kB / 385 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.114e-05/0.4699, allocations: 4.781 kB / 385 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008613/0.4708, allocations: 354.3 kB / 385.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 3.827e-06/0.4708, allocations: 0 / 385.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.002131/0.473, allocations: 0.7256 MB / 386.1 MB, free: 8.57 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.761e-05/0.4731, allocations: 113.7 kB / 386.2 MB, free: 8.441 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000644/0.4737, allocations: 306.5 kB / 386.5 MB, free: 8.266 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.586e-05/0.4738, allocations: 43.95 kB / 386.6 MB, free: 8.223 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002297/0.4741, allocations: 182.2 kB / 386.7 MB, free: 8.082 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001557/0.4742, allocations: 80 kB / 386.8 MB, free: 8.031 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004828/0.4747, allocations: 184.8 kB / 387 MB, free: 7.977 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.4749, allocations: 342.1 kB / 387.3 MB, free: 7.648 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005325/0.4754, allocations: 183 kB / 387.5 MB, free: 7.605 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000577/0.476, allocations: 238.5 kB / 387.7 MB, free: 7.504 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/0.4771, allocations: 0.5147 MB / 388.2 MB, free: 7.215 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.957e-06/0.4771, allocations: 0 / 388.2 MB, free: 7.215 MB / 318.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001509/0.4786, allocations: 0.6516 MB / 388.9 MB, free: 6.977 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.47e-05/0.4787, allocations: 61.78 kB / 389 MB, free: 6.914 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.4787, allocations: 2 kB / 389 MB, free: 6.914 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.667e-05/0.4787, allocations: 2.406 kB / 389 MB, free: 6.914 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001871/0.4789, allocations: 59.5 kB / 389 MB, free: 6.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.442e-05/0.479, allocations: 7.25 kB / 389 MB, free: 6.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002886/0.4793, allocations: 25.48 kB / 389.1 MB, free: 6.898 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000356/0.4796, allocations: 286.5 kB / 389.3 MB, free: 6.875 MB / 318.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,$PRE.FF.And2.auxiliary_n,FF.RS2.TD1.x_delayed,$PRE.FF.RS2.TD1.x,FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.x[2],FF.RS2.Nor2.x[1],$PRE.FF.And4.auxiliary_n,FF.RS1.TD1.x_delayed,$PRE.FF.RS1.TD1.x,FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.x[2],FF.RS1.Nor2.x[1],$PRE.FF.Not1.auxiliary,FF.And4.auxiliary_n,FF.And4.x[1],FF.And3.auxiliary_n,FF.And3.x[2],$PRE.FF.And1.auxiliary_n,FF.And1.y,FF.RS2.TD1.x,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary[2],K.y,J.y,CLK.t_i,$PRE.CLK.t_i,FF.Not1.auxiliary,$PRE.FF.And3.auxiliary_n,FF.And3.y,FF.And2.auxiliary_n,FF.And2.auxiliary[2],FF.And2.x[1],FF.And1.auxiliary_n,FF.And1.auxiliary[2],FF.And1.x[1],FF.RS1.TD1.x,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary[2]) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005028/0.4801, allocations: 294.2 kB / 389.6 MB, free: 6.641 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.4802, allocations: 29.06 kB / 389.6 MB, free: 6.629 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.156e-05/0.4803, allocations: 41.42 kB / 389.7 MB, free: 6.605 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.4803, allocations: 3.938 kB / 389.7 MB, free: 6.605 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.359e-05/0.4804, allocations: 2.5 kB / 389.7 MB, free: 6.605 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/0.4804, allocations: 6.109 kB / 389.7 MB, free: 6.602 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006788/0.4811, allocations: 486.2 kB / 390.2 MB, free: 6.305 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.4811, allocations: 0.75 kB / 390.2 MB, free: 6.305 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001425/0.4812, allocations: 51.89 kB / 390.2 MB, free: 6.301 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.224e-06/0.4812, allocations: 1.938 kB / 390.2 MB, free: 6.301 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001084/0.4814, allocations: 53.33 kB / 390.3 MB, free: 6.293 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.4814, allocations: 1.125 kB / 390.3 MB, free: 6.293 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.4814, allocations: 0.7031 kB / 390.3 MB, free: 6.293 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001439/0.4828, allocations: 0.6064 MB / 390.9 MB, free: 6.043 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000491/0.4833, allocations: 199.8 kB / 391.1 MB, free: 5.898 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001312/0.4835, allocations: 15.34 kB / 391.1 MB, free: 5.891 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/0.4837, allocations: 19.19 kB / 391.1 MB, free: 5.887 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003461/0.484, allocations: 92.52 kB / 391.2 MB, free: 5.871 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004166/0.4844, allocations: 275.6 kB / 391.5 MB, free: 5.855 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002468/0.4847, allocations: 201 kB / 391.7 MB, free: 5.742 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.4847, allocations: 0 / 391.7 MB, free: 5.742 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006476/0.4854, allocations: 107 kB / 391.8 MB, free: 5.715 MB / 318.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[1],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[1],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.x[1],FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.x[1],FF.And4.auxiliary_n,FF.Not1.auxiliary,CLK.t_i,J.y,K.y) * Number of discrete states: 13 (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,K.y,J.y) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002747/0.4856, allocations: 137.3 kB / 391.9 MB, free: 5.617 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001247/0.4869, allocations: 0.5527 MB / 392.5 MB, free: 5.398 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.4869, allocations: 0 / 392.5 MB, free: 5.398 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005251/0.4874, allocations: 363.1 kB / 392.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001441/0.4889, allocations: 332.1 kB / 393.1 MB, free: 5.137 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001636/0.4905, allocations: 0.7033 MB / 393.8 MB, free: 4.773 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003673/0.4909, allocations: 0.8086 MB / 394.7 MB, free: 4.059 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.002636/0.4936, allocations: 0.7501 MB / 395.4 MB, free: 3.578 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008889/0.4945, allocations: 261.9 kB / 395.7 MB, free: 3.418 MB / 318.1 MB Notification: Performance of SimCode: time 1.833e-06/0.4945, allocations: 0 / 395.7 MB, free: 3.418 MB / 318.1 MB Notification: Performance of Templates: time 0.02359/0.5181, allocations: 10.92 MB / 406.6 MB, free: 14.4 MB / 334.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)