Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Electrical.Digital.Examples.FlipFlop") translateModel(Modelica.Electrical.Digital.Examples.FlipFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.008058/0.008058, allocations: 96.39 kB / 15.73 MB, free: 6.484 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.001659/0.001659, allocations: 191.3 kB / 16.67 MB, free: 6.391 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.027/2.027, allocations: 205.1 MB / 222.5 MB, free: 4.516 MB / 174.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.001275/0.001275, allocations: 50.36 kB / 326.5 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1233, allocations: 46.62 MB / 373.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003396/0.1267, allocations: 2.132 MB / 375.3 MB, free: 15.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002599/0.1293, allocations: 1.162 MB / 376.5 MB, free: 14.01 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.1295, allocations: 7.938 kB / 376.5 MB, free: 14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002225/0.1297, allocations: 43.58 kB / 376.5 MB, free: 13.96 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001186/0.1298, allocations: 43.58 kB / 376.6 MB, free: 13.92 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005369/0.1304, allocations: 171.8 kB / 376.7 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005985/0.131, allocations: 463.6 kB / 377.2 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002958/0.1313, allocations: 156.9 kB / 377.3 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000937/0.1322, allocations: 0.846 MB / 378.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003798/0.1326, allocations: 263 kB / 378.4 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001213/0.1328, allocations: 40 kB / 378.5 MB, free: 12 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001142/0.1329, allocations: 44 kB / 378.5 MB, free: 11.95 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002074/0.1331, allocations: 147.5 kB / 378.7 MB, free: 11.81 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002587/0.1334, allocations: 210.9 kB / 378.9 MB, free: 11.6 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001018/0.1344, allocations: 0.9303 MB / 379.8 MB, free: 10.67 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.281e-05/0.1344, allocations: 0 / 379.8 MB, free: 10.67 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.1344, allocations: 7.875 kB / 379.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.423e-05/0.1344, allocations: 0 / 379.8 MB, free: 10.66 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.001436/0.1359, allocations: 0.876 MB / 380.7 MB, free: 9.723 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.509e-05/0.1359, allocations: 12.03 kB / 380.7 MB, free: 9.711 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000145/0.1361, allocations: 48.66 kB / 380.7 MB, free: 9.664 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004951/0.1366, allocations: 351.5 kB / 381.1 MB, free: 9.281 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.503e-05/0.1366, allocations: 29.03 kB / 381.1 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.908e-05/0.1367, allocations: 32.38 kB / 381.1 MB, free: 9.223 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009779/0.1377, allocations: 494.1 kB / 381.6 MB, free: 8.73 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.1378, allocations: 0 / 381.6 MB, free: 8.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.325e-05/0.1378, allocations: 16 kB / 381.6 MB, free: 8.715 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.1379, allocations: 12 kB / 381.6 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007938/0.1387, allocations: 374.4 kB / 382 MB, free: 8.34 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001876/0.1405, allocations: 1.116 MB / 383.1 MB, free: 7.172 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001098/0.1417, allocations: 439.5 kB / 383.6 MB, free: 6.734 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003655/0.142, allocations: 185.3 kB / 383.7 MB, free: 6.551 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.345e-05/0.1421, allocations: 4.266 kB / 383.7 MB, free: 6.547 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006507/0.1428, allocations: 347 kB / 384.1 MB, free: 6.195 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 1.754e-06/0.1428, allocations: 0 / 384.1 MB, free: 6.195 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.001437/0.1442, allocations: 0.7355 MB / 384.8 MB, free: 5.441 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.516e-05/0.1443, allocations: 114.8 kB / 384.9 MB, free: 5.305 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002736/0.1446, allocations: 306.5 kB / 385.2 MB, free: 5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.421e-05/0.1447, allocations: 37.7 kB / 385.3 MB, free: 4.957 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001488/0.1448, allocations: 181 kB / 385.4 MB, free: 4.777 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001042/0.1449, allocations: 91.31 kB / 385.5 MB, free: 4.688 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002659/0.1452, allocations: 182.1 kB / 385.7 MB, free: 4.504 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.1453, allocations: 342.8 kB / 386 MB, free: 4.16 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003875/0.1457, allocations: 180.8 kB / 386.2 MB, free: 3.984 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004101/0.1462, allocations: 236.5 kB / 386.5 MB, free: 3.734 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008724/0.147, allocations: 0.5339 MB / 387 MB, free: 3.16 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.1471, allocations: 0 / 387 MB, free: 3.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001121/0.1482, allocations: 0.6372 MB / 387.6 MB, free: 2.504 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.361e-05/0.1482, allocations: 60.5 kB / 387.7 MB, free: 2.434 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.1483, allocations: 4 kB / 387.7 MB, free: 2.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.1483, allocations: 4.031 kB / 387.7 MB, free: 2.426 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001528/0.1484, allocations: 67.83 kB / 387.8 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.766e-06/0.1485, allocations: 4 kB / 387.8 MB, free: 2.355 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001816/0.1486, allocations: 19.95 kB / 387.8 MB, free: 2.336 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002627/0.1489, allocations: 291.6 kB / 388.1 MB, free: 2.051 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.0003181/0.1492, allocations: 293 kB / 388.4 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.277e-05/0.1493, allocations: 35.8 kB / 388.4 MB, free: 1.707 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.777e-05/0.1494, allocations: 34.97 kB / 388.4 MB, free: 1.672 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.1494, allocations: 4 kB / 388.4 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.1494, allocations: 3.938 kB / 388.4 MB, free: 1.664 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.1494, allocations: 3.984 kB / 388.4 MB, free: 1.66 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005221/0.15, allocations: 485.2 kB / 388.9 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.15, allocations: 0 / 388.9 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000107/0.1501, allocations: 51.91 kB / 389 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.1501, allocations: 8 kB / 389 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.058e-05/0.1502, allocations: 43.97 kB / 389 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.137e-06/0.1502, allocations: 4 kB / 389 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.1502, allocations: 0 / 389 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001/0.1512, allocations: 0.6055 MB / 389.6 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002215/0.1514, allocations: 196.8 kB / 389.8 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.425e-05/0.1515, allocations: 16 kB / 389.8 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001431/0.1517, allocations: 19.98 kB / 389.8 MB, free: 152 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002127/0.1519, allocations: 91.77 kB / 389.9 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002531/0.1522, allocations: 280 kB / 390.2 MB, free: 15.78 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001751/0.1523, allocations: 205.9 kB / 390.4 MB, free: 15.58 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1523, allocations: 0 / 390.4 MB, free: 15.58 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003851/0.1527, allocations: 107.8 kB / 390.5 MB, free: 15.47 MB / 334.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.000177/0.1529, allocations: 133.8 kB / 390.6 MB, free: 15.33 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009628/0.1539, allocations: 0.5532 MB / 391.2 MB, free: 14.75 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1539, allocations: 0 / 391.2 MB, free: 14.75 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004926/0.1544, allocations: 358.4 kB / 391.5 MB, free: 14.38 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001207/0.1556, allocations: 337 kB / 391.9 MB, free: 14.05 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001156/0.1568, allocations: 0.7072 MB / 392.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003565/0.1572, allocations: 0.8033 MB / 393.4 MB, free: 12.49 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001254/0.1584, allocations: 0.7549 MB / 394.1 MB, free: 11.73 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006417/0.1591, allocations: 262.8 kB / 394.4 MB, free: 11.47 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1591, allocations: 0 / 394.4 MB, free: 11.47 MB / 334.1 MB Notification: Performance of Templates: time 0.01512/0.1742, allocations: 10.9 MB / 405.3 MB, free: 344 kB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_3.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_3.1_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1)