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.01038/0.01039, allocations: 100 kB / 15.73 MB, free: 6.473 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.001861/0.001861, allocations: 194.8 kB / 16.67 MB, free: 6.379 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.95/1.95, allocations: 205.1 MB / 222.6 MB, free: 4.531 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.001425/0.001425, allocations: 47.66 kB / 326.5 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1293, allocations: 46.62 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003871/0.1332, allocations: 2.132 MB / 375.3 MB, free: 15.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003123/0.1364, allocations: 1.158 MB / 376.5 MB, free: 14.01 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001854/0.1366, allocations: 4 kB / 376.5 MB, free: 14.01 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002577/0.1368, allocations: 51.52 kB / 376.5 MB, free: 13.96 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001378/0.137, allocations: 47.62 kB / 376.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006928/0.1377, allocations: 175.7 kB / 376.7 MB, free: 13.74 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006284/0.1383, allocations: 459.6 kB / 377.2 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003792/0.1387, allocations: 160.9 kB / 377.3 MB, free: 13.13 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009529/0.1397, allocations: 0.8383 MB / 378.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003431/0.14, allocations: 251 kB / 378.4 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.263e-05/0.1401, allocations: 44 kB / 378.5 MB, free: 12 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.174e-05/0.1402, allocations: 40 kB / 378.5 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002033/0.1404, allocations: 155.5 kB / 378.7 MB, free: 11.81 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002597/0.1407, allocations: 214.8 kB / 378.9 MB, free: 11.6 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007772/0.1415, allocations: 0.9306 MB / 379.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1415, allocations: 7.875 kB / 379.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1415, allocations: 0 / 379.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.413e-05/0.1415, 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.001351/0.1429, allocations: 0.8608 MB / 380.7 MB, free: 9.734 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/0.1429, allocations: 8.031 kB / 380.7 MB, free: 9.727 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001367/0.1431, allocations: 48.38 kB / 380.7 MB, free: 9.68 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005401/0.1436, allocations: 359.3 kB / 381.1 MB, free: 9.289 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.636e-05/0.1437, allocations: 29.03 kB / 381.1 MB, free: 9.262 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.188e-05/0.1438, allocations: 32.38 kB / 381.1 MB, free: 9.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009207/0.1447, allocations: 494 kB / 381.6 MB, free: 8.738 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.1447, allocations: 4 kB / 381.6 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.708e-05/0.1448, allocations: 16 kB / 381.6 MB, free: 8.719 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.1448, allocations: 8 kB / 381.6 MB, free: 8.711 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007822/0.1456, allocations: 378.4 kB / 382 MB, free: 8.344 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001963/0.1476, allocations: 1.116 MB / 383.1 MB, free: 7.176 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/0.1487, allocations: 435.5 kB / 383.5 MB, free: 6.742 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003486/0.149, allocations: 181.3 kB / 383.7 MB, free: 6.562 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.298e-05/0.1491, allocations: 4.281 kB / 383.7 MB, free: 6.559 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006329/0.1498, allocations: 347 kB / 384.1 MB, free: 6.207 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 2.194e-06/0.1498, allocations: 0 / 384.1 MB, free: 6.207 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.001487/0.1513, allocations: 0.7314 MB / 384.8 MB, free: 5.457 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.687e-05/0.1514, allocations: 110.8 kB / 384.9 MB, free: 5.324 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003019/0.1517, allocations: 306.4 kB / 385.2 MB, free: 5.02 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.977e-05/0.1517, allocations: 41.7 kB / 385.2 MB, free: 4.973 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000139/0.1519, allocations: 176.7 kB / 385.4 MB, free: 4.797 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001142/0.152, allocations: 91.02 kB / 385.5 MB, free: 4.707 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002702/0.1523, allocations: 182 kB / 385.7 MB, free: 4.523 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.1525, allocations: 342.8 kB / 386 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003856/0.1529, allocations: 180.8 kB / 386.2 MB, free: 4.004 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003914/0.1533, allocations: 232.5 kB / 386.4 MB, free: 3.758 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008186/0.1541, allocations: 0.53 MB / 387 MB, free: 3.188 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1541, allocations: 0 / 387 MB, free: 3.188 MB / 318.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001113/0.1552, allocations: 0.6449 MB / 387.6 MB, free: 2.523 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.566e-05/0.1553, allocations: 60.5 kB / 387.7 MB, free: 2.453 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.1553, allocations: 4.031 kB / 387.7 MB, free: 2.449 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.1553, allocations: 4 kB / 387.7 MB, free: 2.445 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001582/0.1555, allocations: 59.89 kB / 387.7 MB, free: 2.387 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-06/0.1555, allocations: 4 kB / 387.7 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001795/0.1557, allocations: 23.89 kB / 387.8 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000268/0.156, allocations: 287.6 kB / 388 MB, free: 2.078 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.0003454/0.1563, allocations: 304.9 kB / 388.3 MB, free: 1.758 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.719e-05/0.1564, allocations: 27.72 kB / 388.4 MB, free: 1.73 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.23e-05/0.1565, allocations: 34.97 kB / 388.4 MB, free: 1.695 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.1565, allocations: 11.92 kB / 388.4 MB, free: 1.684 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.1565, allocations: 0 / 388.4 MB, free: 1.684 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.565e-06/0.1565, allocations: 4 kB / 388.4 MB, free: 1.68 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005176/0.1571, allocations: 477.2 kB / 388.9 MB, free: 1.164 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.1571, allocations: 0 / 388.9 MB, free: 1.164 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001085/0.1572, allocations: 59.91 kB / 388.9 MB, free: 1.105 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.1572, allocations: 0 / 388.9 MB, free: 1.105 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.056e-05/0.1573, allocations: 47.97 kB / 389 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.1573, allocations: 0 / 389 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1573, allocations: 0 / 389 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/0.1583, allocations: 0.6014 MB / 389.6 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002566/0.1586, allocations: 196.6 kB / 389.8 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.215e-05/0.1587, allocations: 23.98 kB / 389.8 MB, free: 196 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001438/0.1589, allocations: 16 kB / 389.8 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002188/0.1591, allocations: 91.77 kB / 389.9 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002662/0.1594, allocations: 279.7 kB / 390.2 MB, free: 15.81 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001805/0.1596, allocations: 205.9 kB / 390.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1596, allocations: 3.938 kB / 390.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004291/0.16, allocations: 99.84 kB / 390.5 MB, free: 15.51 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.0001974/0.1602, allocations: 133.9 kB / 390.6 MB, free: 15.37 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009781/0.1612, allocations: 0.5493 MB / 391.2 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.123e-06/0.1612, allocations: 0 / 391.2 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005251/0.1617, allocations: 366.5 kB / 391.5 MB, free: 14.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.1629, allocations: 336.9 kB / 391.8 MB, free: 14.08 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.1643, allocations: 0.6962 MB / 392.5 MB, free: 13.36 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004923/0.1648, allocations: 0.8072 MB / 393.3 MB, free: 12.53 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001521/0.1663, allocations: 0.751 MB / 394.1 MB, free: 11.77 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007324/0.1671, allocations: 262.8 kB / 394.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of SimCode: time 8.02e-07/0.1671, allocations: 3.938 kB / 394.4 MB, free: 11.51 MB / 334.1 MB Notification: Performance of Templates: time 0.01762/0.1847, allocations: 10.9 MB / 405.3 MB, free: 384 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)