Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Digital.Examples.FlipFlop") translateModel(Modelica.Electrical.Digital.Examples.FlipFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001275/0.001275, allocations: 108.6 kB / 15.73 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00126/0.001261, allocations: 186.9 kB / 16.66 MB, free: 6.602 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.137/2.137, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.00124/0.00124, allocations: 46.31 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1544/0.1556, allocations: 46.63 MB / 373.2 MB, free: 1.461 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003912/0.1596, allocations: 2.124 MB / 375.3 MB, free: 15.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002852/0.1625, allocations: 1.162 MB / 376.4 MB, free: 14.15 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001657/0.1627, allocations: 7.938 kB / 376.5 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002512/0.163, allocations: 51.56 kB / 376.5 MB, free: 14.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001269/0.1631, allocations: 39.64 kB / 376.5 MB, free: 14.05 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006255/0.1638, allocations: 167.7 kB / 376.7 MB, free: 13.89 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006282/0.1644, allocations: 467.6 kB / 377.2 MB, free: 13.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000334/0.1648, allocations: 160.9 kB / 377.3 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000979/0.1657, allocations: 0.8461 MB / 378.2 MB, free: 12.42 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003965/0.1662, allocations: 255 kB / 378.4 MB, free: 12.17 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001334/0.1663, allocations: 44 kB / 378.5 MB, free: 12.13 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001084/0.1664, allocations: 40 kB / 378.5 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002292/0.1666, allocations: 151.5 kB / 378.6 MB, free: 11.94 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000286/0.1669, allocations: 210.8 kB / 378.9 MB, free: 11.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009857/0.1679, allocations: 0.9264 MB / 379.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.356e-05/0.168, allocations: 4 kB / 379.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.168, allocations: 3.938 kB / 379.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.276e-05/0.168, allocations: 7.938 kB / 379.8 MB, free: 10.79 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.001523/0.1695, allocations: 0.876 MB / 380.7 MB, free: 9.852 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.153e-05/0.1696, allocations: 8.031 kB / 380.7 MB, free: 9.844 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001566/0.1698, allocations: 52.64 kB / 380.7 MB, free: 9.793 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005422/0.1703, allocations: 355.5 kB / 381.1 MB, free: 9.406 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.627e-05/0.1704, allocations: 21.03 kB / 381.1 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.135e-05/0.1704, allocations: 36.38 kB / 381.1 MB, free: 9.352 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009216/0.1714, allocations: 490 kB / 381.6 MB, free: 8.863 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.1714, allocations: 0 / 381.6 MB, free: 8.863 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.568e-05/0.1715, allocations: 23.98 kB / 381.6 MB, free: 8.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.426e-05/0.1715, allocations: 8 kB / 381.6 MB, free: 8.832 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007792/0.1723, allocations: 374.4 kB / 382 MB, free: 8.469 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002004/0.1743, allocations: 1.12 MB / 383.1 MB, free: 7.297 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001076/0.1754, allocations: 435.5 kB / 383.6 MB, free: 6.863 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004433/0.1758, allocations: 177.3 kB / 383.7 MB, free: 6.688 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.947e-05/0.176, allocations: 4.281 kB / 383.7 MB, free: 6.684 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009169/0.1769, allocations: 347 kB / 384.1 MB, free: 6.332 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 2.425e-06/0.1769, allocations: 0 / 384.1 MB, free: 6.332 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.00205/0.179, allocations: 0.7432 MB / 384.8 MB, free: 5.57 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.1791, allocations: 106.8 kB / 384.9 MB, free: 5.441 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004622/0.1795, allocations: 310.5 kB / 385.2 MB, free: 5.133 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.253e-05/0.1796, allocations: 37.7 kB / 385.3 MB, free: 5.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002795/0.1799, allocations: 181 kB / 385.4 MB, free: 4.91 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000143/0.1801, allocations: 87.33 kB / 385.5 MB, free: 4.824 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003781/0.1805, allocations: 182.1 kB / 385.7 MB, free: 4.641 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002865/0.1808, allocations: 342.8 kB / 386 MB, free: 4.297 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005048/0.1813, allocations: 180.8 kB / 386.2 MB, free: 4.121 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000547/0.1818, allocations: 236.5 kB / 386.4 MB, free: 3.871 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001086/0.1829, allocations: 0.53 MB / 387 MB, free: 3.301 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.183, allocations: 0 / 387 MB, free: 3.301 MB / 318.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001744/0.1847, allocations: 0.645 MB / 387.6 MB, free: 2.637 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.8e-05/0.1848, allocations: 59.41 kB / 387.7 MB, free: 2.566 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.1848, allocations: 4 kB / 387.7 MB, free: 2.562 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.563e-05/0.1849, allocations: 8.031 kB / 387.7 MB, free: 2.555 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002071/0.1851, allocations: 55.89 kB / 387.7 MB, free: 2.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.821e-05/0.1851, allocations: 4 kB / 387.7 MB, free: 2.496 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002814/0.1854, allocations: 31.88 kB / 387.8 MB, free: 2.465 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003917/0.1858, allocations: 287.6 kB / 388.1 MB, free: 2.184 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.0004889/0.1863, allocations: 297 kB / 388.3 MB, free: 1.871 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001031/0.1864, allocations: 31.81 kB / 388.4 MB, free: 1.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.686e-05/0.1865, allocations: 38.89 kB / 388.4 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-05/0.1865, allocations: 4 kB / 388.4 MB, free: 1.797 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/0.1866, allocations: 3.938 kB / 388.4 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.1866, allocations: 0 / 388.4 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008941/0.1875, allocations: 485.2 kB / 388.9 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.633e-06/0.1875, allocations: 3.984 kB / 388.9 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001461/0.1877, allocations: 47.91 kB / 388.9 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.1877, allocations: 8 kB / 389 MB, free: 1.211 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000109/0.1878, allocations: 43.97 kB / 389 MB, free: 1.168 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.1878, allocations: 4 kB / 389 MB, free: 1.164 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1878, allocations: 0 / 389 MB, free: 1.164 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001534/0.1894, allocations: 0.6016 MB / 389.6 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00036/0.1897, allocations: 196.8 kB / 389.8 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001216/0.1899, allocations: 19.98 kB / 389.8 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001953/0.1901, allocations: 16 kB / 389.8 MB, free: 292 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003297/0.1904, allocations: 95.7 kB / 389.9 MB, free: 196 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003735/0.1908, allocations: 283.7 kB / 390.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002828/0.1911, allocations: 205.9 kB / 390.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1911, allocations: 0 / 390.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005591/0.1917, allocations: 99.84 kB / 390.5 MB, free: 15.61 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.0002643/0.1919, allocations: 141.8 kB / 390.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001586/0.1935, allocations: 0.5415 MB / 391.2 MB, free: 14.9 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1935, allocations: 0 / 391.2 MB, free: 14.9 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008134/0.1944, allocations: 358.4 kB / 391.5 MB, free: 14.52 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001624/0.196, allocations: 341 kB / 391.9 MB, free: 14.19 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001946/0.198, allocations: 0.7072 MB / 392.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008283/0.1988, allocations: 0.7994 MB / 393.4 MB, free: 12.63 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.002171/0.201, allocations: 0.7549 MB / 394.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009438/0.202, allocations: 270.8 kB / 394.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of SimCode: time 6.81e-07/0.202, allocations: 0 / 394.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of Templates: time 0.02748/0.2295, allocations: 10.9 MB / 405.3 MB, free: 484 kB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1)