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.001138/0.001138, allocations: 95.23 kB / 16.65 MB, free: 6.535 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.001392/0.001392, allocations: 175.4 kB / 17.56 MB, free: 6.18 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.984/1.984, allocations: 205.4 MB / 223.7 MB, free: 13.07 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.0005188/0.0005189, allocations: 12 kB / 280.7 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1287, allocations: 47.6 MB / 328.3 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002306/0.131, allocations: 1.815 MB / 330.1 MB, free: 1.922 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002168/0.1332, allocations: 1.124 MB / 331.3 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.307e-05/0.1333, allocations: 4 kB / 331.3 MB, free: 0.7852 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001725/0.1335, allocations: 35.7 kB / 331.3 MB, free: 0.75 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001077/0.1336, allocations: 35.75 kB / 331.3 MB, free: 0.7148 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004238/0.1341, allocations: 155.8 kB / 331.5 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003778/0.1344, allocations: 419.6 kB / 331.9 MB, free: 156 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002517/0.1347, allocations: 156.9 kB / 332 MB, free: 0 / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007835/0.1355, allocations: 0.7837 MB / 332.8 MB, free: 15.21 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002492/0.1358, allocations: 215 kB / 333 MB, free: 15 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.785e-05/0.1358, allocations: 12 kB / 333.1 MB, free: 14.99 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.051e-05/0.1359, allocations: 8 kB / 333.1 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001544/0.1361, allocations: 119.5 kB / 333.2 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001958/0.1363, allocations: 200.5 kB / 333.4 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006701/0.1369, allocations: 0.8878 MB / 334.3 MB, free: 13.77 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.137, allocations: 0 / 334.3 MB, free: 13.77 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.137, allocations: 0 / 334.3 MB, free: 13.77 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.136e-06/0.137, allocations: 0 / 334.3 MB, free: 13.77 MB / 286.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.001128/0.1381, allocations: 0.7164 MB / 335 MB, free: 12.99 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.1382, allocations: 8.031 kB / 335 MB, free: 12.98 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001197/0.1383, allocations: 48.38 kB / 335 MB, free: 12.94 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000451/0.1387, allocations: 355.4 kB / 335.4 MB, free: 12.55 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.605e-05/0.1388, allocations: 29.03 kB / 335.4 MB, free: 12.52 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.115e-05/0.1389, allocations: 28.38 kB / 335.4 MB, free: 12.49 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009028/0.1398, allocations: 498.1 kB / 335.9 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.1398, allocations: 0 / 335.9 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.115e-05/0.1399, allocations: 16 kB / 335.9 MB, free: 11.98 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.1399, allocations: 8 kB / 335.9 MB, free: 11.98 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007889/0.1407, allocations: 394.3 kB / 336.3 MB, free: 11.59 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002167/0.1429, allocations: 1.105 MB / 337.4 MB, free: 10.43 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001258/0.1442, allocations: 479.5 kB / 337.9 MB, free: 9.957 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003636/0.1446, allocations: 185.3 kB / 338.1 MB, free: 9.773 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.298e-05/0.1446, allocations: 4.281 kB / 338.1 MB, free: 9.77 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006492/0.1453, allocations: 355.1 kB / 338.4 MB, free: 9.41 MB / 286.1 MB Notification: Performance of pre-optimization done (n=35): time 3.487e-06/0.1453, allocations: 0 / 338.4 MB, free: 9.41 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.001698/0.147, allocations: 0.7423 MB / 339.2 MB, free: 8.648 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/0.1471, allocations: 110.8 kB / 339.3 MB, free: 8.516 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003664/0.1475, allocations: 310.4 kB / 339.6 MB, free: 8.207 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.453e-05/0.1476, allocations: 41.7 kB / 339.6 MB, free: 8.16 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001567/0.1477, allocations: 180.6 kB / 339.8 MB, free: 7.977 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.1479, allocations: 79.06 kB / 339.9 MB, free: 7.898 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001301/0.148, allocations: 69.62 kB / 340 MB, free: 7.824 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.1482, allocations: 342.7 kB / 340.3 MB, free: 7.48 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003955/0.1486, allocations: 192.7 kB / 340.5 MB, free: 7.293 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004871/0.1491, allocations: 244.5 kB / 340.7 MB, free: 7.039 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001039/0.1501, allocations: 0.53 MB / 341.2 MB, free: 6.469 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.1501, allocations: 0 / 341.2 MB, free: 6.469 MB / 286.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001249/0.1514, allocations: 0.6527 MB / 341.9 MB, free: 5.797 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.259e-05/0.1515, allocations: 67.39 kB / 342 MB, free: 5.719 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.1515, allocations: 0 / 342 MB, free: 5.719 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.1515, allocations: 4 kB / 342 MB, free: 5.715 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001634/0.1517, allocations: 55.91 kB / 342 MB, free: 5.66 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.1517, allocations: 4.156 kB / 342 MB, free: 5.656 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00036/0.1521, allocations: 51.81 kB / 342.1 MB, free: 5.605 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002946/0.1524, allocations: 295.6 kB / 342.4 MB, free: 5.316 MB / 286.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.0003928/0.1528, allocations: 289.1 kB / 342.6 MB, free: 5.012 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.406e-05/0.1529, allocations: 31.62 kB / 342.7 MB, free: 4.98 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.344e-05/0.153, allocations: 34.95 kB / 342.7 MB, free: 4.945 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.153, allocations: 4 kB / 342.7 MB, free: 4.941 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.153, allocations: 4 kB / 342.7 MB, free: 4.938 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.153, allocations: 3.984 kB / 342.7 MB, free: 4.934 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007535/0.1538, allocations: 485.1 kB / 343.2 MB, free: 4.41 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.1538, allocations: 3.984 kB / 343.2 MB, free: 4.406 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001073/0.1539, allocations: 51.91 kB / 343.3 MB, free: 4.355 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.1539, allocations: 0 / 343.3 MB, free: 4.355 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-05/0.154, allocations: 51.97 kB / 343.3 MB, free: 4.305 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.154, allocations: 0 / 343.3 MB, free: 4.305 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.154, allocations: 0 / 343.3 MB, free: 4.305 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.1551, allocations: 0.6256 MB / 343.9 MB, free: 3.648 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002859/0.1554, allocations: 188.7 kB / 344.1 MB, free: 3.445 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.647e-05/0.1555, allocations: 19.94 kB / 344.1 MB, free: 3.426 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002305/0.1558, allocations: 43.88 kB / 344.2 MB, free: 3.383 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002743/0.1561, allocations: 95.83 kB / 344.3 MB, free: 3.289 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004385/0.1565, allocations: 279.7 kB / 344.5 MB, free: 3.016 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002391/0.1568, allocations: 209.9 kB / 344.7 MB, free: 2.812 MB / 286.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.1568, allocations: 0 / 344.7 MB, free: 2.812 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005404/0.1573, allocations: 95.75 kB / 344.8 MB, free: 2.719 MB / 286.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.000241/0.1576, allocations: 141.8 kB / 345 MB, free: 2.57 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001066/0.1586, allocations: 0.5531 MB / 345.5 MB, free: 1.992 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.1586, allocations: 0 / 345.5 MB, free: 1.992 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007289/0.1594, allocations: 366.6 kB / 345.9 MB, free: 1.609 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001357/0.1608, allocations: 296.5 kB / 346.2 MB, free: 1.316 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001499/0.1623, allocations: 0.8232 MB / 347 MB, free: 476 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005183/0.1628, allocations: 0.8111 MB / 347.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00178/0.1646, allocations: 0.7471 MB / 348.6 MB, free: 14.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007373/0.1653, allocations: 270.7 kB / 348.8 MB, free: 14.61 MB / 302.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1653, allocations: 4 kB / 348.8 MB, free: 14.61 MB / 302.1 MB Notification: Performance of Templates: time 0.01777/0.1831, allocations: 10.29 MB / 359.1 MB, free: 4.098 MB / 302.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)