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.001617/0.001617, allocations: 103.9 kB / 17.06 MB, free: 6.012 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.001708/0.001708, allocations: 195 kB / 18 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.905/1.905, 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.001565/0.001565, allocations: 51.92 kB / 327.9 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1497/0.1512, allocations: 46.63 MB / 374.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.004834/0.1562, allocations: 2.131 MB / 376.6 MB, free: 2.434 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003073/0.1593, allocations: 1.162 MB / 377.8 MB, free: 1.262 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002998/0.1596, allocations: 4 kB / 377.8 MB, free: 1.258 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003418/0.1601, allocations: 47.58 kB / 377.8 MB, free: 1.211 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001604/0.1603, allocations: 43.59 kB / 377.9 MB, free: 1.168 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000914/0.1612, allocations: 175.8 kB / 378 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006804/0.1619, allocations: 455.6 kB / 378.5 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003613/0.1622, allocations: 164.9 kB / 378.7 MB, free: 396 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3606/0.5229, allocations: 0.8352 MB / 379.5 MB, free: 10.08 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004864/0.5234, allocations: 247.3 kB / 379.7 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001307/0.5235, allocations: 43.28 kB / 379.8 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001046/0.5236, allocations: 46.19 kB / 379.8 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000213/0.5239, allocations: 151.7 kB / 380 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002542/0.5241, allocations: 216.5 kB / 380.2 MB, free: 9.992 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001218/0.5254, allocations: 0.9211 MB / 381.1 MB, free: 9.941 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.5254, allocations: 3.875 kB / 381.1 MB, free: 9.941 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.5254, allocations: 3.844 kB / 381.1 MB, free: 9.941 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.5254, allocations: 0.5312 kB / 381.1 MB, free: 9.941 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.001469/0.5269, allocations: 0.8694 MB / 382 MB, free: 9.414 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/0.5269, allocations: 8.75 kB / 382 MB, free: 9.414 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001676/0.5271, allocations: 48.84 kB / 382 MB, free: 9.391 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005533/0.5277, allocations: 351 kB / 382.4 MB, free: 9.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.843e-05/0.5277, allocations: 26.84 kB / 382.4 MB, free: 9.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.32e-05/0.5278, allocations: 34.12 kB / 382.4 MB, free: 9.16 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001173/0.529, allocations: 491.5 kB / 382.9 MB, free: 9.117 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/0.529, allocations: 3.938 kB / 382.9 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.266e-05/0.5291, allocations: 18.41 kB / 382.9 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.817e-05/0.5291, allocations: 7.438 kB / 382.9 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008852/0.53, allocations: 376.3 kB / 383.3 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002204/0.5322, allocations: 1.111 MB / 384.4 MB, free: 8.801 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001214/0.5335, allocations: 438.1 kB / 384.8 MB, free: 8.777 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004328/0.5339, allocations: 180.2 kB / 385 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.569e-05/0.534, allocations: 8.047 kB / 385 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007661/0.5348, allocations: 349.7 kB / 385.4 MB, free: 8.715 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 2.966e-06/0.5348, allocations: 0 / 385.4 MB, free: 8.715 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.001685/0.5365, allocations: 0.7254 MB / 386.1 MB, free: 8.555 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.51e-05/0.5365, allocations: 118.6 kB / 386.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003344/0.5369, allocations: 305.6 kB / 386.5 MB, free: 8.25 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.352e-05/0.537, allocations: 40.89 kB / 386.6 MB, free: 8.211 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001381/0.5371, allocations: 180.4 kB / 386.7 MB, free: 8.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.5372, allocations: 79.62 kB / 386.8 MB, free: 8.02 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003231/0.5375, allocations: 183.1 kB / 387 MB, free: 7.965 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.183e-05/0.5376, allocations: 343.9 kB / 387.3 MB, free: 7.637 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003834/0.538, allocations: 182.6 kB / 387.5 MB, free: 7.594 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004277/0.5385, allocations: 236.3 kB / 387.7 MB, free: 7.496 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008322/0.5393, allocations: 0.5175 MB / 388.2 MB, free: 7.207 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.5393, allocations: 3.5 kB / 388.3 MB, free: 7.207 MB / 318.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001209/0.5405, allocations: 0.6464 MB / 388.9 MB, free: 6.973 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.148e-05/0.5406, allocations: 61.2 kB / 389 MB, free: 6.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.5406, allocations: 6.281 kB / 389 MB, free: 6.906 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.079e-05/0.5406, allocations: 2.406 kB / 389 MB, free: 6.906 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001661/0.5408, allocations: 61.34 kB / 389 MB, free: 6.902 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.5408, allocations: 5.062 kB / 389 MB, free: 6.902 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002156/0.541, allocations: 30.75 kB / 389.1 MB, free: 6.887 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003529/0.5414, allocations: 281.1 kB / 389.3 MB, free: 6.867 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.0003516/0.5418, allocations: 304.1 kB / 389.6 MB, free: 6.629 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.26e-05/0.5419, allocations: 28.56 kB / 389.7 MB, free: 6.617 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.419e-05/0.5419, allocations: 36.33 kB / 389.7 MB, free: 6.598 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.542, allocations: 4.531 kB / 389.7 MB, free: 6.598 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.214e-05/0.542, allocations: 1.094 kB / 389.7 MB, free: 6.598 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.542, allocations: 1.641 kB / 389.7 MB, free: 6.598 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006985/0.5427, allocations: 481.9 kB / 390.2 MB, free: 6.301 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.5427, allocations: 0 / 390.2 MB, free: 6.301 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001381/0.5428, allocations: 57.11 kB / 390.2 MB, free: 6.293 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.5429, allocations: 1.531 kB / 390.2 MB, free: 6.293 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/0.543, allocations: 45.95 kB / 390.3 MB, free: 6.289 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.112e-06/0.543, allocations: 4.188 kB / 390.3 MB, free: 6.289 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.543, allocations: 3.938 kB / 390.3 MB, free: 6.285 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0012/0.5442, allocations: 0.6035 MB / 390.9 MB, free: 6.039 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000369/0.5446, allocations: 207.1 kB / 391.1 MB, free: 5.891 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.5447, allocations: 14.89 kB / 391.1 MB, free: 5.883 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000151/0.5448, allocations: 16.02 kB / 391.1 MB, free: 5.879 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003344/0.5452, allocations: 91.98 kB / 391.2 MB, free: 5.863 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004633/0.5456, allocations: 280.1 kB / 391.5 MB, free: 5.844 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002756/0.5459, allocations: 202.1 kB / 391.7 MB, free: 5.73 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5459, allocations: 0 / 391.7 MB, free: 5.73 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006115/0.5466, allocations: 98.41 kB / 391.8 MB, free: 5.711 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.0002815/0.5468, allocations: 142.8 kB / 391.9 MB, free: 5.605 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001287/0.5481, allocations: 0.5453 MB / 392.5 MB, free: 5.395 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.5481, allocations: 0 / 392.5 MB, free: 5.395 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005735/0.5487, allocations: 366.7 kB / 392.8 MB, free: 5.215 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001557/0.5503, allocations: 337 kB / 393.1 MB, free: 5.133 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001564/0.5519, allocations: 0.6982 MB / 393.8 MB, free: 4.77 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000327/0.5522, allocations: 0.809 MB / 394.7 MB, free: 4.055 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.002484/0.5547, allocations: 0.7531 MB / 395.4 MB, free: 3.574 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000913/0.5556, allocations: 261.1 kB / 395.7 MB, free: 3.414 MB / 318.1 MB Notification: Performance of SimCode: time 7.72e-07/0.5556, allocations: 0 / 395.7 MB, free: 3.414 MB / 318.1 MB Notification: Performance of Templates: time 0.02053/0.5762, allocations: 11.06 MB / 406.7 MB, free: 14.26 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)